From 00c89a3673af923353905a0a2a0321bc112be98c Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 16 Jun 2022 15:38:15 -0400 Subject: [PATCH] lib: Function `crypt` does not need to be declared mid function Signed-off-by: Donald Sharp --- lib/command.c | 1 - lib/vty.c | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/command.c b/lib/command.c index c4db045633..cbecc81574 100644 --- a/lib/command.c +++ b/lib/command.c @@ -429,7 +429,6 @@ static char *zencrypt(const char *passwd) { char salt[6]; struct timeval tv; - char *crypt(const char *, const char *); gettimeofday(&tv, 0); diff --git a/lib/vty.c b/lib/vty.c index e0e2f39229..92db07677a 100644 --- a/lib/vty.c +++ b/lib/vty.c @@ -382,7 +382,6 @@ static void vty_auth(struct vty *vty, char *buf) char *passwd = NULL; enum node_type next_node = 0; int fail; - char *crypt(const char *, const char *); switch (vty->node) { case AUTH_NODE: -- 2.39.5