0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 02:01:55 +00:00

BIRD Client: cleaning code

This commit is contained in:
Pavel Tvrdik 2016-04-25 16:43:28 +02:00
parent f603be4643
commit 856b1bb1ef
2 changed files with 4 additions and 5 deletions

View File

@ -38,6 +38,7 @@
#define SERVER_READ_BUF_LEN 4096 #define SERVER_READ_BUF_LEN 4096
#define INPUT_BUF_LEN 2048 #define INPUT_BUF_LEN 2048
#define REFRESH_SYMBOLS_CMD "refresh symbols" /* Name of cli command for retrieve new symbols from daemon */
static char *opt_list = "s:vr"; static char *opt_list = "s:vr";
static int verbose, restricted, once; static int verbose, restricted, once;
@ -196,7 +197,7 @@ add_to_symbols(int flag, const char *name)
void void
retrieve_symbols(void) retrieve_symbols(void)
{ {
/* purge old symbols */ /* Purge old symbols */
list *syms = cli_get_symbol_list(); list *syms = cli_get_symbol_list();
struct cli_symbol *sym, *next; struct cli_symbol *sym, *next;
WALK_LIST_DELSAFE(sym, next, *syms) WALK_LIST_DELSAFE(sym, next, *syms)

View File

@ -9,8 +9,6 @@
#ifndef _BIRD_CLIENT_H_ #ifndef _BIRD_CLIENT_H_
#define _BIRD_CLIENT_H_ #define _BIRD_CLIENT_H_
#define REFRESH_SYMBOLS_CMD "refresh symbols"
extern int init, busy, interactive; extern int init, busy, interactive;
extern int term_lns, term_cls; extern int term_lns, term_cls;