From b567fd20cda5e7673d91c6a748de8459f2970154 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 25 Jul 2017 01:39:58 +0200 Subject: [PATCH] server: Make sender subcommand array const. Also the array itself (not just the subcommands) are constant. --- command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command.c b/command.c index 3943d6dc..f1797304 100644 --- a/command.c +++ b/command.c @@ -227,7 +227,7 @@ static int check_sender_args(struct command_context *cc, struct lls_parse_result *lpr, struct sender_command_data *scd) { int i, ret; - const char *subcmds[] = {SENDER_SUBCOMMANDS}; + const char * const subcmds[] = {SENDER_SUBCOMMANDS}; const char *arg; char *errctx; unsigned num_inputs = lls_num_inputs(lpr); -- 2.39.2