From 4e6a053468cf37bbf3f01e7cb28cb3ad80fefb41 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 4 Sep 2015 14:21:23 -0400 Subject: [PATCH] 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) --- vtysh/vtysh_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5