From 555a5bfe1541ba77ccfe410dd515c9f9037a0a07 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 16 Nov 2016 15:02:04 +0900 Subject: [PATCH] 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 --- lib/command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/command.h b/lib/command.h index a170a9549d..a38f436884 100644 --- a/lib/command.h +++ b/lib/command.h @@ -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, \ -- 2.39.5