]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
after-merge fix
authorJan Moskyto Matejka <mq@ucw.cz>
Wed, 12 Jul 2017 12:10:56 +0000 (14:10 +0200)
committerJan Moskyto Matejka <mq@ucw.cz>
Wed, 12 Jul 2017 12:10:56 +0000 (14:10 +0200)
nest/cmds.c

index c4fcebd96025869361a9586c5f10211be677fcfe..0980ed70ca821f0862189aa5809b160a1a268bc8 100644 (file)
@@ -99,16 +99,16 @@ get_cli_code_for_sym(struct symbol *sym)
 void
 cmd_send_symbols(void)
 {
-  int code, pos = 0;
-  struct symbol *sym = NULL;
+  int code = 0;
 
   cli_msg(RC_BIRD_VERSION_NUM, "%s", BIRD_VERSION);
 
-  while (sym = cf_walk_symbols(config, sym, &pos))
+  HASH_WALK(config->sym_hash, next, sym)
   {
     code = get_cli_code_for_sym(sym);
     cli_msg(code, "%s", sym->name);
   }
+  HASH_WALK_END;
 
   struct iface *i;
   WALK_LIST(i, iface_list)