From 0e28116eedf506ef0012b60fb474db3c42a8c5ed Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 14 Jan 2019 10:53:24 +0100 Subject: [PATCH] s3:utils: Use C99 initializer in functable in net Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- source3/utils/net.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/source3/utils/net.c b/source3/utils/net.c index 99d42ff9f9b..7c5b6a05be7 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -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); -- 2.11.4.GIT