From: Andreas Schneider Date: Mon, 14 Jan 2019 09:47:44 +0000 (+0100) Subject: s3:utils: Use C99 initializer for poptOption in log2pcaphex X-Git-Tag: ldb-1.6.1~405 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5961286f29e9225f0fa5ee7b395825d06e2575c7;p=thirdparty%2Fsamba.git s3:utils: Use C99 initializer for poptOption in log2pcaphex Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- diff --git a/source3/utils/log2pcaphex.c b/source3/utils/log2pcaphex.c index 99733ed3c87..70558ac5b8f 100644 --- a/source3/utils/log2pcaphex.c +++ b/source3/utils/log2pcaphex.c @@ -308,8 +308,22 @@ int main(int argc, const char **argv) size_t in_packet = 0; struct poptOption long_options[] = { POPT_AUTOHELP - { "quiet", 'q', POPT_ARG_NONE, &quiet, 0, "Be quiet, don't output warnings" }, - { "hex", 'h', POPT_ARG_NONE, &hexformat, 0, "Output format readable by text2pcap" }, + { + .longName = "quiet", + .shortName = 'q', + .argInfo = POPT_ARG_NONE, + .arg = &quiet, + .val = 0, + .descrip = "Be quiet, don't output warnings", + }, + { + .longName = "hex", + .shortName = 'h', + .argInfo = POPT_ARG_NONE, + .arg = &hexformat, + .val = 0, + .descrip = "Output format readable by text2pcap", + }, POPT_TABLEEND };