]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Function `crypt` does not need to be declared mid function 11423/head
authorDonald Sharp <sharpd@nvidia.com>
Thu, 16 Jun 2022 19:38:15 +0000 (15:38 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 16 Jun 2022 20:31:35 +0000 (16:31 -0400)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/command.c
lib/vty.c

index c4db0456339312f72a5e741057ef7c2ade4232cc..cbecc815741e3e94bb4cd39f3be3407aaddcb813 100644 (file)
@@ -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);
 
index e0e2f39229d19bdbcde5c32821ba76ebfaaea40c..92db07677ae06f5b8b71b993a4e4ea142e98373c 100644 (file)
--- 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: