Browse Source

TT#111150 reformat struct initialiser

Expanding the initialiser of the contained array eliminates a stray
warning from gcc (-Wmissing-field-initializers).

Change-Id: Icef260477d0ff7acc050375ce48cc6604ee325ff
rfuchs/1283
Richard Fuchs 5 years ago
parent
commit
1205f22f48
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      daemon/bencode.c

+ 6
- 2
daemon/bencode.c View File

@ -35,8 +35,12 @@ struct __bencode_hash {
static bencode_item_t __bencode_end_marker = { static bencode_item_t __bencode_end_marker = {
.type = BENCODE_END_MARKER, .type = BENCODE_END_MARKER,
.iov[0].iov_base = "e",
.iov[0].iov_len = 1,
.iov = {
{
.iov_base = "e",
.iov_len = 1,
},
},
.iov_cnt = 1, .iov_cnt = 1,
.str_len = 1, .str_len = 1,
}; };


Loading…
Cancel
Save