server: Make sender subcommand array const.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 24 Jul 2017 23:39:58 +0000 (01:39 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 3 Aug 2017 20:37:02 +0000 (22:37 +0200)
Also the array itself (not just the subcommands) are constant.

command.c

index 3943d6d..f179730 100644 (file)
--- 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);