diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-07 15:28:44 -0500 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2016-12-09 15:48:56 +0100 | 
| commit | c43ac31c18316b393a61de552fcb367730e25bad (patch) | |
| tree | 2efa01e773f2886b352bfa82f79293cf7c24428f /vtysh/vtysh_user.c | |
| parent | 25801920d2bdd955ec1c64cb04751890e576ee91 (diff) | |
vtysh: Fix static compilation
When compiling vtysh with --enable-static and --disasble-shared
we get linker errors with duplicate function names.
This commit addresses this issue.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit dd2ecdedf88eb612759617ba044e4c29353088de)
Diffstat (limited to 'vtysh/vtysh_user.c')
| -rw-r--r-- | vtysh/vtysh_user.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/vtysh/vtysh_user.c b/vtysh/vtysh_user.c index 1886ba3a67..da2ed1569e 100644 --- a/vtysh/vtysh_user.c +++ b/vtysh/vtysh_user.c @@ -165,8 +165,8 @@ user_get (const char *name)    return user;  } -DEFUN (banner_motd_file, -       banner_motd_file_cmd, +DEFUN (vtysh_banner_motd_file, +       vtysh_banner_motd_file_cmd,         "banner motd file FILE",         "Set banner\n"         "Banner for motd\n" @@ -229,5 +229,5 @@ vtysh_user_init (void)  {    userlist = list_new ();    install_element (CONFIG_NODE, &username_nopassword_cmd); -  install_element (CONFIG_NODE, &banner_motd_file_cmd); +  install_element (CONFIG_NODE, &vtysh_banner_motd_file_cmd);  }  | 
