Dear Maintainer,
Warning from the compiler:
more.c:96:33: warning: missing braces around initializer [-Wmissing-braces]
Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
more.c | 56 ++++++++++++++++++++++++++++----------------------------
1 file changed, 28 insertions(+), 28 deletions(-)
diff --git a/more.c b/more.c
index 6985a6b..8a1987a 100644
--- a/more.c
+++ b/more.c
@@ -95,34 +95,34 @@ static struct header_def {
char **digest;
} header_defs[] = {
- 'A', "Approved", &news.ng_appr, 0,
- 'B', "Distribution", &news.ng_dist, 0,
- 'c', "Comment-To", &news.ng_comment, 0,
- 'C', "Control", &news.ng_control, 0,
- 'D', "Date", &news.ng_date, &digest.dg_date,
- 'F', "From", &news.ng_from, &digest.dg_from,
- 'f', "Sender", &news.ng_sender, 0,
- 'I', "Message-Id", &news.ng_ident, 0,
- 'J', "Originator", &news.ng_origr, 0,
- 'K', "Keywords", &news.ng_keyw, 0,
- 'L', "Lines", &news.ng_xlines, 0,
- 'N', "Newsgroups", &news.ng_groups, 0,
- 'O', "Organization", &news.ng_org, 0,
- 'P', "Path", &news.ng_path, 0,
- 'R', "Reply-To", &news.ng_reply, 0,
- 'S', "Subject", &news.ng_subj, &digest.dg_subj,
- 'W', "Followup-To", &news.ng_follow, 0,
- 'X', "References", &news.ng_ref, 0,
- 'Y', "Summary", &news.ng_summ, 0,
- 'd', "Date-Received", &news.ng_rdate, 0,
- 'g', "Newsgroup", &news.ng_groups, 0,
- 'G', "Newsgroup", &news.ng_groups, 0,
- 'n', "Newsgroups", &news.ng_groups, 0,
- 'x', "Back-Ref", &news.ng_bref, 0,
- 'v', "Save-File", NULL, 0,
- 'a', "Spool-File", NULL, 0,
- 'i', "DB-Info", NULL, 0,
- 0
+ {'A', "Approved", &news.ng_appr, 0},
+ {'B', "Distribution", &news.ng_dist, 0},
+ {'c', "Comment-To", &news.ng_comment, 0},
+ {'C', "Control", &news.ng_control, 0},
+ {'D', "Date", &news.ng_date, &digest.dg_date},
+ {'F', "From", &news.ng_from, &digest.dg_from},
+ {'f', "Sender", &news.ng_sender, 0},
+ {'I', "Message-Id", &news.ng_ident, 0},
+ {'J', "Originator", &news.ng_origr, 0},
+ {'K', "Keywords", &news.ng_keyw, 0},
+ {'L', "Lines", &news.ng_xlines, 0},
+ {'N', "Newsgroups", &news.ng_groups, 0},
+ {'O', "Organization", &news.ng_org, 0},
+ {'P', "Path", &news.ng_path, 0},
+ {'R', "Reply-To", &news.ng_reply, 0},
+ {'S', "Subject", &news.ng_subj, &digest.dg_subj},
+ {'W', "Followup-To", &news.ng_follow, 0},
+ {'X', "References", &news.ng_ref, 0},
+ {'Y', "Summary", &news.ng_summ, 0},
+ {'d', "Date-Received", &news.ng_rdate, 0},
+ {'g', "Newsgroup", &news.ng_groups, 0},
+ {'G', "Newsgroup", &news.ng_groups, 0},
+ {'n', "Newsgroups", &news.ng_groups, 0},
+ {'x', "Back-Ref", &news.ng_bref, 0},
+ {'v', "Save-File", NULL, 0},
+ {'a', "Spool-File", NULL, 0},
+ {'i', "DB-Info", NULL, 0},
+ {0}
};
static int