]> git.puffer.fish Git - mirror/frr.git/commitdiff
vtysh: allow --with-libpam to build with --enable-werror
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 4 Sep 2015 18:21:23 +0000 (14:21 -0400)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:33:31 +0000 (15:33 +0000)
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 <sharpd@cumulusnetworks.com>
(cherry picked from commit 8965be4baaa1a4c619cbb4a8a10d15a72d80b60d)

vtysh/vtysh_user.c

index 3e7726423503fcdc3e64de79b28501737fc14529..098e10ce401670ed94e2af6438dc57f15da54844 100644 (file)
@@ -62,7 +62,7 @@ static struct pam_conv conv =
   NULL
 };
 
-int
+static int
 vtysh_pam (const char *user)
 {
   int ret;