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 addaa6acbc
commit 1205f22f48

@ -35,8 +35,12 @@ struct __bencode_hash {
static bencode_item_t __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,
.str_len = 1,
};

Loading…
Cancel
Save