diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-07 15:28:44 -0500 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2016-12-08 14:52:37 +0100 | 
| commit | dd2ecdedf88eb612759617ba044e4c29353088de (patch) | |
| tree | 79cfdbffad999a72e16d0f90518ada43b5d01af9 /vtysh/vtysh_user.c | |
| parent | 76c764377c134c9d27508797231fc8873921b2db (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>
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 b1ba1a24ae..0516f9914c 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" @@ -231,5 +231,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);  }  | 
