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

index 99d42ff9f9b72393cca9328138e4b1579d20807b..7c5b6a05be74b228b814b13137c928f37b99548b 100644 (file)
@@ -156,16 +156,22 @@ static int net_primarytrust(struct net_context *c, int argc, const char **argv)
 {
        struct functable func[] = {
                {
-                       "dumpinfo",
-                       net_primarytrust_dumpinfo,
-                       NET_TRANSPORT_LOCAL,
-                       N_("Dump the details of the workstation trust"),
-                       N_("  net [options] primarytrust dumpinfo'\n"
-                          "    Dump the details of the workstation trust "
-                          "in secrets.tdb.\n"
-                          "    Requires the -f flag to include the password values.")
+                       .funcname         = "dumpinfo",
+                       .fn               = net_primarytrust_dumpinfo,
+                       .valid_transports = NET_TRANSPORT_LOCAL,
+                       .description      = N_("Dump the details of the "
+                                              "workstation trust"),
+                       .usage            = N_("  net [options] primarytrust "
+                                              "dumpinfo'\n"
+                                              "    Dump the details of the "
+                                              "workstation trust in "
+                                              "secrets.tdb.\n"
+                                              "    Requires the -f flag to "
+                                              "include the password values."),
+               },
+               {
+                       .funcname = NULL,
                },
-               {NULL, NULL, 0, NULL, NULL}
        };
 
        return net_run_function(c, argc, argv, "net primarytrust", func);