Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libtelnet eliminate redundant decls.



details:   https://anonhg.NetBSD.org/src/rev/ec16a63db925
branches:  trunk
changeset: 501746:ec16a63db925
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 06 23:36:36 2001 +0000

description:
eliminate redundant decls.

diffstat:

 lib/libtelnet/enc_des.c   |  6 ++----
 lib/libtelnet/encrypt.c   |  7 ++-----
 lib/libtelnet/kerberos.c  |  6 ++----
 lib/libtelnet/kerberos5.c |  5 +++--
 4 files changed, 9 insertions(+), 15 deletions(-)

diffs (108 lines):

diff -r ff19dae15ae1 -r ec16a63db925 lib/libtelnet/enc_des.c
--- a/lib/libtelnet/enc_des.c   Sat Jan 06 23:36:07 2001 +0000
+++ b/lib/libtelnet/enc_des.c   Sat Jan 06 23:36:36 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: enc_des.c,v 1.4 2000/06/22 06:47:43 thorpej Exp $      */
+/*     $NetBSD: enc_des.c,v 1.5 2001/01/06 23:36:36 christos Exp $     */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)enc_des.c  8.3 (Berkeley) 5/30/95"; */
 #else
-__RCSID("$NetBSD: enc_des.c,v 1.4 2000/06/22 06:47:43 thorpej Exp $");
+__RCSID("$NetBSD: enc_des.c,v 1.5 2001/01/06 23:36:36 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -60,8 +60,6 @@
 #include <sys/cdefs.h>
 #define P __P
 
-extern int encrypt_debug_mode;
-
 #define        CFB     0
 #define        OFB     1
 
diff -r ff19dae15ae1 -r ec16a63db925 lib/libtelnet/encrypt.c
--- a/lib/libtelnet/encrypt.c   Sat Jan 06 23:36:07 2001 +0000
+++ b/lib/libtelnet/encrypt.c   Sat Jan 06 23:36:36 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: encrypt.c,v 1.7 2000/06/22 06:47:43 thorpej Exp $      */
+/*     $NetBSD: encrypt.c,v 1.8 2001/01/06 23:36:36 christos Exp $     */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)encrypt.c  8.2 (Berkeley) 5/30/95";
 #else
-__RCSID("$NetBSD: encrypt.c,v 1.7 2000/06/22 06:47:43 thorpej Exp $");
+__RCSID("$NetBSD: encrypt.c,v 1.8 2001/01/06 23:36:36 christos Exp $");
 #endif /* not lint */
 
 /*
@@ -98,9 +98,6 @@
 static int Server = 0;
 static const char *Name = "Noname";
 
-/* XXX This should be prototyped in some header file! */
-extern char **genget __P((char *, char **, int));
-
 #define        typemask(x)     ((x) > 0 ? 1 << ((x)-1) : 0)
 
 static long i_support_encrypt = typemask(ENCTYPE_DES_CFB64)
diff -r ff19dae15ae1 -r ec16a63db925 lib/libtelnet/kerberos.c
--- a/lib/libtelnet/kerberos.c  Sat Jan 06 23:36:07 2001 +0000
+++ b/lib/libtelnet/kerberos.c  Sat Jan 06 23:36:36 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kerberos.c,v 1.4 2000/06/22 06:47:44 thorpej Exp $     */
+/*     $NetBSD: kerberos.c,v 1.5 2001/01/06 23:36:37 christos Exp $    */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)kerberos.c 8.3 (Berkeley) 5/30/95";
 #else
-__RCSID("$NetBSD: kerberos.c,v 1.4 2000/06/22 06:47:44 thorpej Exp $");
+__RCSID("$NetBSD: kerberos.c,v 1.5 2001/01/06 23:36:37 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -85,8 +85,6 @@
 
 int kerberos4_cksum __P((unsigned char *, int));
 
-extern int auth_debug_mode;
-
 static unsigned char str_data[1024] = { IAC, SB, TELOPT_AUTHENTICATION, 0,
                                        AUTHTYPE_KERBEROS_V4, };
 #if 0
diff -r ff19dae15ae1 -r ec16a63db925 lib/libtelnet/kerberos5.c
--- a/lib/libtelnet/kerberos5.c Sat Jan 06 23:36:07 2001 +0000
+++ b/lib/libtelnet/kerberos5.c Sat Jan 06 23:36:36 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kerberos5.c,v 1.5 2000/07/17 02:25:02 thorpej Exp $    */
+/*     $NetBSD: kerberos5.c,v 1.6 2001/01/06 23:36:37 christos Exp $   */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -71,6 +71,8 @@
 #include "auth.h"
 #include "misc.h"
 
+extern int net;
+
 int forward_flags;     /* Flags get set in telnet/main.c on -f and -F */
 int got_forwarded_creds;/* Tell telnetd to pass -F or -f to login. */
 
@@ -168,7 +170,6 @@
        int ap_opts;
        krb5_data cksum_data;
        char foo[2];
-       extern int net;
 
        printf("[ Trying KERBEROS5 ... ]\r\n");
 



Home | Main Index | Thread Index | Old Index