From: Donald Sharp Date: Fri, 4 Sep 2015 18:21:23 +0000 (-0400) Subject: vtysh: allow --with-libpam to build with --enable-werror X-Git-Tag: frr-2.0-rc1~719 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=4e6a053468cf37bbf3f01e7cb28cb3ad80fefb41;p=matthieu%2Ffrr.git vtysh: allow --with-libpam to build with --enable-werror The function vtysh_pam fails the build with --enable-werror enabled because it is a static function not declared as such Signed-off-by: Donald Sharp (cherry picked from commit 8965be4baaa1a4c619cbb4a8a10d15a72d80b60d) --- diff --git a/vtysh/vtysh_user.c b/vtysh/vtysh_user.c index 3e77264235..098e10ce40 100644 --- a/vtysh/vtysh_user.c +++ b/vtysh/vtysh_user.c @@ -62,7 +62,7 @@ static struct pam_conv conv = NULL }; -int +static int vtysh_pam (const char *user) { int ret;