s3:utils: Use C99 initializer for poptOption in log2pcaphex
authorAndreas Schneider <asn@samba.org>
Mon, 14 Jan 2019 09:47:44 +0000 (10:47 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 28 Jan 2019 09:29:14 +0000 (10:29 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source3/utils/log2pcaphex.c

index 99733ed3c87fef3cafbf19dd39bcf7edf93e3e38..70558ac5b8f8743ca029a39b03c2369e7466451c 100644 (file)
@@ -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
        };