summaryrefslogtreecommitdiff
path: root/vtysh/vtysh_user.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-05-19 18:29:15 -0700
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-05-19 18:29:15 -0700
commitc0e8c16f844e27675f30ceae50e599d4953e0ae3 (patch)
tree722366fc213778a76e9f4df4d0c7b22c4986227e /vtysh/vtysh_user.c
parent91283e76414a50cc72fcaf7f4d25b93ce924bd1d (diff)
vtysh: vtysh-warnings.patch
Remove compile warnings for the vtysh directory Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by:
Diffstat (limited to 'vtysh/vtysh_user.c')
-rw-r--r--vtysh/vtysh_user.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/vtysh/vtysh_user.c b/vtysh/vtysh_user.c
index 58676c10c8..e2432dec2c 100644
--- a/vtysh/vtysh_user.c
+++ b/vtysh/vtysh_user.c
@@ -38,6 +38,20 @@
#include "linklist.h"
#include "command.h"
+/*
+ * Compiler is warning about prototypes not being declared.
+ * The DEFUNSH and DEFUN macro's are messing with the
+ * compiler I believe. This is just to make it happy.
+ */
+int vtysh_pam(const char *);
+struct vtysh_user *user_new(void);
+void user_free(struct vtysh_user *);
+struct vtysh_user *user_lookup(const char *);
+void user_config_write(void);
+struct vtysh_user *user_get(const char *);
+int vtysh_auth(void);
+void vtysh_user_init(void);
+
#ifdef USE_PAM
static struct pam_conv conv =
{