lib: make DEFUN foobar_cmd symbols static

These are not externally referenced anymore;  this reduces the symbol
count of libzebra by quite a bit.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2016-11-16 15:02:04 +09:00
parent 0b84f29490
commit 555a5bfe15

View File

@ -237,7 +237,7 @@ struct cmd_element
/* helper defines for end-user DEFUN* macros */
#define DEFUN_CMD_ELEMENT(funcname, cmdname, cmdstr, helpstr, attrs, dnum) \
struct cmd_element cmdname = \
static struct cmd_element cmdname = \
{ \
.string = cmdstr, \
.func = funcname, \