summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9d24300)
Also the array itself (not just the subcommands) are constant.
struct lls_parse_result *lpr, struct sender_command_data *scd)
{
int i, ret;
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);
const char *arg;
char *errctx;
unsigned num_inputs = lls_num_inputs(lpr);