From e06511a0bb3bbd6e03fedba5e6ecb29564c8eec4 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 22 Feb 2023 09:14:24 +0100 Subject: [PATCH] Fix warning reported by new GCC --- bacula/src/dird/ua_dotcmds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bacula/src/dird/ua_dotcmds.c b/bacula/src/dird/ua_dotcmds.c index 6833137f0..639026287 100644 --- a/bacula/src/dird/ua_dotcmds.c +++ b/bacula/src/dird/ua_dotcmds.c @@ -97,8 +97,8 @@ static bool dot_add_events(UAContext *ua, const char *cmd); static int one_handler(void *ctx, int num_field, char **row); static bool dot_search(UAContext *ua, const char *cmd); -struct cmdstruct { const char *key; bool (*func)(UAContext *ua, const char *cmd); const char *help; const char *usage;;const bool use_in_rs;}; -static struct cmdstruct commands[] = { /* help */ /* can be used in runscript */ +struct dcmd_struct { const char *key; bool (*func)(UAContext *ua, const char *cmd); const char *help; const char *usage;const bool use_in_rs;}; +static struct dcmd_struct commands[] = { /* help */ /* can be used in runscript */ { NT_(".api"), api_cmd, _("Set the API options"), ".api 2\n.api 2 api_opts=j", false}, { NT_(".backups"), backupscmd, _("Display the list of the authorized Backup Job resources"), NULL, false}, { NT_(".clients"), clientscmd, _("Display the list of the authorized Client resources"), NULL, true}, @@ -162,7 +162,7 @@ static struct cmdstruct commands[] = { /* help */ /* can be used in runscript * ".query client= plugin= parameter=", false}, { NT_(".tags"), tagscmd, _("List debug tags defined"), NULL, false} }; -#define comsize ((int)(sizeof(commands)/sizeof(struct cmdstruct))) +#define comsize ((int)(sizeof(commands)/sizeof(struct dcmd_struct))) /* * Execute a command from the UA -- 2.47.3