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:
parent
f603be4643
commit
856b1bb1ef
@ -36,8 +36,9 @@
|
|||||||
#include "sysdep/unix/unix.h"
|
#include "sysdep/unix/unix.h"
|
||||||
#include "client/reply_codes.h"
|
#include "client/reply_codes.h"
|
||||||
|
|
||||||
#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)
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user