]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: make DEFUN foobar_cmd symbols static
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 16 Nov 2016 06:02:04 +0000 (15:02 +0900)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 1 Dec 2016 16:25:56 +0000 (17:25 +0100)
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>
lib/command.h

index a170a9549dd1a4f9de5a8856a3ebbfad8e5823f6..a38f4368840f88a6976e65a4ebbf66ce4960227c 100644 (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, \