* 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 *);
-struct vtysh_user *user_get(const char *);
+#ifdef USE_PAM
+static int vtysh_pam(const char *);
+#endif
int vtysh_auth(void);
void vtysh_user_init(void);
NULL
};
-int
+static int
vtysh_pam (const char *user)
{
int ret;
struct list *userlist;
-struct vtysh_user *
+static struct vtysh_user *
user_new (void)
{
return XCALLOC (0, sizeof (struct vtysh_user));
}
-void
-user_free (struct vtysh_user *user)
-{
- XFREE (0, user);
-}
-
-struct vtysh_user *
+static struct vtysh_user *
user_lookup (const char *name)
{
struct listnode *node, *nnode;
}
}
-struct vtysh_user *
+static struct vtysh_user *
user_get (const char *name)
{
struct vtysh_user *user;
}
int
-vtysh_auth ()
+vtysh_auth (void)
{
struct vtysh_user *user;
struct passwd *passwd;