Skip to content

Commit

Permalink
hush: make source_aliases[] const
Browse files Browse the repository at this point in the history
Although the elements of `source_aliases[]` are of type `const char *`,
the elements themselves are not const-qualified.  Make them `const`.

Signed-off-by: Ian Abbott <[email protected]>
Signed-off-by: Sascha Hauer <[email protected]>
  • Loading branch information
ian-abbott authored and saschahauer committed May 19, 2017
1 parent f6652e7 commit 8343222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/hush.c
Original file line number Diff line number Diff line change
Expand Up @@ -1974,7 +1974,7 @@ static int do_source(int argc, char *argv[])
return ret;
}

static const char *source_aliases[] = { ".", NULL};
static const char * const source_aliases[] = { ".", NULL};

BAREBOX_CMD_HELP_START(source)
BAREBOX_CMD_HELP_TEXT("Read and execute commands from FILE in the current shell environment.")
Expand Down

0 comments on commit 8343222

Please sign in to comment.