From: Jan Moskyto Matejka Date: Wed, 12 Jul 2017 12:10:56 +0000 (+0200) Subject: after-merge fix X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87237fa3e465b847b89691481a8de81fdde04953;p=thirdparty%2Fbird.git after-merge fix --- diff --git a/nest/cmds.c b/nest/cmds.c index c4fcebd96..0980ed70c 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)