projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d24300
)
server: Make sender subcommand array const.
author
Andre Noll
<maan@tuebingen.mpg.de>
Mon, 24 Jul 2017 23:39:58 +0000
(
01:39
+0200)
committer
Andre 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
patch
|
blob
|
history
diff --git
a/command.c
b/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);