Source-Changes-HG archive

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

[src/trunk]: src/lib/libc remove redundant declarations.



details:   https://anonhg.NetBSD.org/src/rev/c04c588b0cd7
branches:  trunk
changeset: 500926:c04c588b0cd7
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Dec 20 20:51:08 2000 +0000

description:
remove redundant declarations.

diffstat:

 lib/libc/net/gethnamaddr.c  |  13 ++++---------
 lib/libc/net/getnetnamadr.c |   5 ++---
 lib/libc/net/herror.c       |   6 ++----
 lib/libc/net/nsdispatch.c   |  11 ++++++-----
 lib/libc/net/res_query.c    |   5 ++---
 lib/libc/rpc/rpc_prot.c     |   6 ++----
 lib/libc/rpc/rpcb_clnt.c    |   4 +---
 lib/libc/rpc/svc_dg.c       |   3 +--
 8 files changed, 20 insertions(+), 33 deletions(-)

diffs (236 lines):

diff -r df2b86758646 -r c04c588b0cd7 lib/libc/net/gethnamaddr.c
--- a/lib/libc/net/gethnamaddr.c        Wed Dec 20 20:50:46 2000 +0000
+++ b/lib/libc/net/gethnamaddr.c        Wed Dec 20 20:51:08 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gethnamaddr.c,v 1.38 2000/10/04 14:56:24 sommerfeld Exp $      */
+/*     $NetBSD: gethnamaddr.c,v 1.39 2000/12/20 20:51:08 christos Exp $        */
 
 /*
  * ++Copyright++ 1985, 1988, 1993
@@ -61,7 +61,7 @@
 static char sccsid[] = "@(#)gethostnamadr.c    8.1 (Berkeley) 6/4/93";
 static char rcsid[] = "Id: gethnamaddr.c,v 8.21 1997/06/01 20:34:37 vixie Exp ";
 #else
-__RCSID("$NetBSD: gethnamaddr.c,v 1.38 2000/10/04 14:56:24 sommerfeld Exp $");
+__RCSID("$NetBSD: gethnamaddr.c,v 1.39 2000/12/20 20:51:08 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -145,8 +145,6 @@
     char ac;
 } align;
 
-extern int h_errno;
-
 #ifdef DEBUG
 static void dprintf __P((char *, ...))
        __attribute__((__format__(__printf__, 1, 2)));
@@ -159,9 +157,6 @@
 static void addrsort __P((char **, int));
 #endif
 
-struct hostent *gethostbyname __P((const char *));
-struct hostent *gethostbyname2 __P((const char *, int));
-struct hostent *gethostbyaddr __P((const char *, int, int ));
 void _sethtent __P((int));
 void _endhtent __P((void));
 struct hostent *_gethtent __P((void));
@@ -170,8 +165,8 @@
 void ht_endhostent __P((void));
 struct hostent *ht_gethostbyname __P((char *));
 struct hostent *ht_gethostbyaddr __P((const char *, int, int ));
-struct hostent *gethostent __P((void));
 void dns_service __P((void));
+#undef dn_skipname
 int dn_skipname __P((const u_char *, const u_char *));
 int _gethtbyaddr __P((void *, void *, va_list));
 int _gethtbyname __P((void *, void *, va_list));
@@ -1117,7 +1112,7 @@
        return;
 }
 
-#undef dn_skipname
+int
 dn_skipname(comp_dn, eom)
        const u_char *comp_dn, *eom;
 {
diff -r df2b86758646 -r c04c588b0cd7 lib/libc/net/getnetnamadr.c
--- a/lib/libc/net/getnetnamadr.c       Wed Dec 20 20:50:46 2000 +0000
+++ b/lib/libc/net/getnetnamadr.c       Wed Dec 20 20:51:08 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getnetnamadr.c,v 1.19 2000/01/22 22:19:14 mycroft Exp $        */
+/*     $NetBSD: getnetnamadr.c,v 1.20 2000/12/20 20:51:08 christos Exp $       */
 
 /* Copyright (c) 1993 Carlos Leandro and Rui Salgueiro
  *     Dep. Matematica Universidade de Coimbra, Portugal, Europe
@@ -47,7 +47,7 @@
 static char sccsid_[] = "from getnetnamadr.c   1.4 (Coimbra) 93/06/03";
 static char rcsid[] = "Id: getnetnamadr.c,v 8.8 1997/06/01 20:34:37 vixie Exp ";
 #else
-__RCSID("$NetBSD: getnetnamadr.c,v 1.19 2000/01/22 22:19:14 mycroft Exp $");
+__RCSID("$NetBSD: getnetnamadr.c,v 1.20 2000/12/20 20:51:08 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -86,7 +86,6 @@
 __weak_alias(getnetbyname,_getnetbyname)
 #endif
 
-extern int h_errno;
 extern int _net_stayopen;
 
 #define BYADDR 0
diff -r df2b86758646 -r c04c588b0cd7 lib/libc/net/herror.c
--- a/lib/libc/net/herror.c     Wed Dec 20 20:50:46 2000 +0000
+++ b/lib/libc/net/herror.c     Wed Dec 20 20:51:08 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: herror.c,v 1.15 2000/01/22 22:19:15 mycroft Exp $      */
+/*     $NetBSD: herror.c,v 1.16 2000/12/20 20:51:08 christos Exp $     */
 
 /*-
  * Copyright (c) 1987, 1993
@@ -59,7 +59,7 @@
 static char rcsid[] = "Id: herror.c,v 8.3 1996/08/05 08:31:35 vixie Exp ";
 static char sccsid[] = "@(#)herror.c   8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: herror.c,v 1.15 2000/01/22 22:19:15 mycroft Exp $");
+__RCSID("$NetBSD: herror.c,v 1.16 2000/12/20 20:51:08 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -87,8 +87,6 @@
 };
 const int h_nerr = { sizeof h_errlist/sizeof h_errlist[0] };
 
-extern int     h_errno;
-
 /*
  * herror --
  *     print the error indicated by the h_errno value.
diff -r df2b86758646 -r c04c588b0cd7 lib/libc/net/nsdispatch.c
--- a/lib/libc/net/nsdispatch.c Wed Dec 20 20:50:46 2000 +0000
+++ b/lib/libc/net/nsdispatch.c Wed Dec 20 20:51:08 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nsdispatch.c,v 1.16 2000/01/22 22:19:16 mycroft Exp $  */
+/*     $NetBSD: nsdispatch.c,v 1.17 2000/12/20 20:51:08 christos Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: nsdispatch.c,v 1.16 2000/01/22 22:19:16 mycroft Exp $");
+__RCSID("$NetBSD: nsdispatch.c,v 1.17 2000/12/20 20:51:08 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -63,6 +63,10 @@
 #include <varargs.h>
 #endif
 
+extern FILE    *_nsyyin;
+extern int      _nsyyparse __P((void));
+
+
 #ifdef __weak_alias
 __weak_alias(nsdispatch,_nsdispatch)
 #endif
@@ -162,9 +166,6 @@
        struct stat      statbuf;
        ns_dbt           dbt;
 
-       extern  FILE    *_nsyyin;
-       extern  int      _nsyyparse __P((void));
-
        _DIAGASSERT(name != NULL);
 
        dbt.name = name;
diff -r df2b86758646 -r c04c588b0cd7 lib/libc/net/res_query.c
--- a/lib/libc/net/res_query.c  Wed Dec 20 20:50:46 2000 +0000
+++ b/lib/libc/net/res_query.c  Wed Dec 20 20:51:08 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: res_query.c,v 1.31 2000/08/09 14:41:05 itojun Exp $    */
+/*     $NetBSD: res_query.c,v 1.32 2000/12/20 20:51:08 christos Exp $  */
 
 /*-
  * Copyright (c) 1988, 1993
@@ -59,7 +59,7 @@
 static char sccsid[] = "@(#)res_query.c        8.1 (Berkeley) 6/4/93";
 static char rcsid[] = "Id: res_query.c,v 8.10 1997/06/01 20:34:37 vixie Exp ";
 #else
-__RCSID("$NetBSD: res_query.c,v 1.31 2000/08/09 14:41:05 itojun Exp $");
+__RCSID("$NetBSD: res_query.c,v 1.32 2000/12/20 20:51:08 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -92,7 +92,6 @@
 #define MAXPACKET      1024
 #endif
 
-const char *__hostalias __P((const char *));
 int h_errno;
 
 /*
diff -r df2b86758646 -r c04c588b0cd7 lib/libc/rpc/rpc_prot.c
--- a/lib/libc/rpc/rpc_prot.c   Wed Dec 20 20:50:46 2000 +0000
+++ b/lib/libc/rpc/rpc_prot.c   Wed Dec 20 20:51:08 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rpc_prot.c,v 1.16 2000/06/02 23:11:13 fvdl Exp $       */
+/*     $NetBSD: rpc_prot.c,v 1.17 2000/12/20 20:52:24 christos Exp $   */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -35,7 +35,7 @@
 static char *sccsid = "@(#)rpc_prot.c 1.36 87/08/11 Copyr 1984 Sun Micro";
 static char *sccsid = "@(#)rpc_prot.c  2.3 88/08/07 4.0 RPCSRC";
 #else
-__RCSID("$NetBSD: rpc_prot.c,v 1.16 2000/06/02 23:11:13 fvdl Exp $");
+__RCSID("$NetBSD: rpc_prot.c,v 1.17 2000/12/20 20:52:24 christos Exp $");
 #endif
 #endif
 
@@ -74,8 +74,6 @@
 
 /* * * * * * * * * * * * * * XDR Authentication * * * * * * * * * * * */
 
-extern struct opaque_auth _null_auth;
-
 /*
  * XDR an opaque authentication struct
  * (see auth.h)
diff -r df2b86758646 -r c04c588b0cd7 lib/libc/rpc/rpcb_clnt.c
--- a/lib/libc/rpc/rpcb_clnt.c  Wed Dec 20 20:50:46 2000 +0000
+++ b/lib/libc/rpc/rpcb_clnt.c  Wed Dec 20 20:51:08 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rpcb_clnt.c,v 1.6 2000/07/16 06:41:43 itojun Exp $     */
+/*     $NetBSD: rpcb_clnt.c,v 1.7 2000/12/20 20:52:24 christos Exp $   */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -85,8 +85,6 @@
 static struct timeval tottimeout = { 60, 0 };
 static const struct timeval rmttimeout = { 3, 0 };
 
-extern bool_t xdr_wrapstring __P((XDR *, char **));
-
 static const char nullstring[] = "\000";
 
 #define        CACHESIZE 6
diff -r df2b86758646 -r c04c588b0cd7 lib/libc/rpc/svc_dg.c
--- a/lib/libc/rpc/svc_dg.c     Wed Dec 20 20:50:46 2000 +0000
+++ b/lib/libc/rpc/svc_dg.c     Wed Dec 20 20:51:08 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: svc_dg.c,v 1.4 2000/07/06 03:10:35 christos Exp $      */
+/*     $NetBSD: svc_dg.c,v 1.5 2000/12/20 20:52:24 christos Exp $      */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -82,7 +82,6 @@
 static bool_t svc_dg_control __P((SVCXPRT *, const u_int, void *));
 static int cache_get __P((SVCXPRT *, struct rpc_msg *, char **, size_t *));
 static void cache_set __P((SVCXPRT *, size_t));
-int svc_dg_enablecache __P((SVCXPRT *, u_int));
 
 /*
  * Usage:



Home | Main Index | Thread Index | Old Index