From 87237fa3e465b847b89691481a8de81fdde04953 Mon Sep 17 00:00:00 2001 From: Jan Moskyto Matejka Date: Wed, 12 Jul 2017 14:10:56 +0200 Subject: [PATCH] after-merge fix --- nest/cmds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nest/cmds.c b/nest/cmds.c index c4fcebd9..0980ed70 100644 --- a/nest/cmds.c +++ b/nest/cmds.c @@ -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)