Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/net ansi knf. remove unused cruft



details:   https://anonhg.NetBSD.org/src/rev/3d48d4dcf64e
branches:  trunk
changeset: 518483:3d48d4dcf64e
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sat Dec 01 04:43:24 2001 +0000

description:
ansi knf. remove unused cruft

diffstat:

 lib/libc/net/inet_net_pton.c |  24 +++++-------------------
 1 files changed, 5 insertions(+), 19 deletions(-)

diffs (59 lines):

diff -r 946c7ed1264b -r 3d48d4dcf64e lib/libc/net/inet_net_pton.c
--- a/lib/libc/net/inet_net_pton.c      Sat Dec 01 02:15:39 2001 +0000
+++ b/lib/libc/net/inet_net_pton.c      Sat Dec 01 04:43:24 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inet_net_pton.c,v 1.14 2000/07/07 08:03:39 itohy Exp $ */
+/*     $NetBSD: inet_net_pton.c,v 1.15 2001/12/01 04:43:24 lukem Exp $ */
 
 /*
  * Copyright (c) 1996,1999 by Internet Software Consortium.
@@ -22,7 +22,7 @@
 #if 0
 static const char rcsid[] = "Id: inet_net_pton.c,v 8.3 1996/11/11 06:36:52 vixie Exp ";
 #else
-__RCSID("$NetBSD: inet_net_pton.c,v 1.14 2000/07/07 08:03:39 itohy Exp $");
+__RCSID("$NetBSD: inet_net_pton.c,v 1.15 2001/12/01 04:43:24 lukem Exp $");
 #endif
 #endif
 
@@ -43,14 +43,7 @@
 __weak_alias(inet_net_pton,_inet_net_pton)
 #endif
 
-#ifdef SPRINTF_CHAR
-# define SPRINTF(x) strlen(sprintf/**/x)
-#else
-# define SPRINTF(x) ((size_t)sprintf x)
-#endif
-
-static int     inet_net_pton_ipv4 __P((const char *src, u_char *dst,
-                                       size_t size));
+static int     inet_net_pton_ipv4(const char *src, u_char *dst, size_t size);
 
 /*
  * static int
@@ -66,11 +59,7 @@
  *     Paul Vixie (ISC), June 1996
  */
 int
-inet_net_pton(af, src, dst, size)
-       int af;
-       const char *src;
-       void *dst;
-       size_t size;
+inet_net_pton(int af, const char *src, void *dst, size_t size)
 {
 
        _DIAGASSERT(src != NULL);
@@ -102,10 +91,7 @@
  *     Paul Vixie (ISC), June 1996
  */
 static int
-inet_net_pton_ipv4(src, dst, size)
-       const char *src;
-       u_char *dst;
-       size_t size;
+inet_net_pton_ipv4(const char *src, u_char *dst, size_t size)
 {
        static const char
                xdigits[] = "0123456789abcdef",



Home | Main Index | Thread Index | Old Index