diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2018-09-17 15:25:49 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-17 15:25:49 -0400 |
| commit | e8275c22b4c5dd5a6ff4a66befb61646e787ed0c (patch) | |
| tree | 674f9838e01f5eeb0be16963ae2a156f40f7ab12 /lib/command.c | |
| parent | b4657ea44c7853047fa21585defd06b4b2e52752 (diff) | |
| parent | 36de6e0e1ea886edd0ff7f706a5e8fc81ca9d1e6 (diff) | |
Merge pull request #3040 from pacovn/static_analysis__drop_const_1
bgpd isisd ldpd lib: const drop fixes (SA)
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/command.c b/lib/command.c index f3c8b1ed06..e4e3d786ac 100644 --- a/lib/command.c +++ b/lib/command.c @@ -618,8 +618,8 @@ static int cmd_try_do_shortcut(enum node_type node, char *first_word) */ static int compare_completions(const void *fst, const void *snd) { - struct cmd_token *first = *(struct cmd_token **)fst, - *secnd = *(struct cmd_token **)snd; + const struct cmd_token *first = *(const struct cmd_token * const *)fst, + *secnd = *(const struct cmd_token * const *)snd; return strcmp(first->text, secnd->text); } |
