diff options
author | F. Aragon <paco@voltanet.io> | 2018-09-17 18:22:59 +0200 |
---|---|---|
committer | F. Aragon <paco@voltanet.io> | 2018-09-17 19:38:59 +0200 |
commit | 36de6e0e1ea886edd0ff7f706a5e8fc81ca9d1e6 (patch) | |
tree | 25f225b816fd7547224d54744b3631d2aa36620b /lib/command.c | |
parent | Merge pull request #3007 from pacovn/static_analysis__shadow_variables2 (diff) | |
download | frr-36de6e0e1ea886edd0ff7f706a5e8fc81ca9d1e6.tar.xz frr-36de6e0e1ea886edd0ff7f706a5e8fc81ca9d1e6.zip |
bgpd isisd ldpd lib: const drop fixes (SA)
Can be detected with e.g. ./configure CFLAGS=-Wcast-qual CC=clang
Signed-off-by: F. Aragon <paco@voltanet.io>
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 26afc762f..a594adb31 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); } |