]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/command.c
bgpd isisd ldpd lib: const drop fixes (SA)
[mirror_frr.git] / lib / command.c
index 26afc762fba20dabc846bd921e41aca305155e62..a594adb3198992c2d5d452412d449f5d35fc53eb 100644 (file)
@@ -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);
 }