Source-Changes-HG archive

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

[src/trunk]: src/dist/bind/lib/inet Sync with libc implementation (change siz...



details:   https://anonhg.NetBSD.org/src/rev/53ed8d8e3773
branches:  trunk
changeset: 527017:53ed8d8e3773
user:      kleink <kleink%NetBSD.org@localhost>
date:      Wed May 15 20:58:19 2002 +0000

description:
Sync with libc implementation (change size argument from size_t to
socklen_t); pointed out by Chris Gilbert.

diffstat:

 dist/bind/lib/inet/inet_ntop.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r 298b8b33ce9b -r 53ed8d8e3773 dist/bind/lib/inet/inet_ntop.c
--- a/dist/bind/lib/inet/inet_ntop.c    Wed May 15 20:45:17 2002 +0000
+++ b/dist/bind/lib/inet/inet_ntop.c    Wed May 15 20:58:19 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inet_ntop.c,v 1.2 2001/01/27 07:22:03 itojun Exp $     */
+/*     $NetBSD: inet_ntop.c,v 1.3 2002/05/15 20:58:19 kleink Exp $     */
 
 /*
  * Copyright (c) 1996-1999 by Internet Software Consortium.
@@ -48,8 +48,8 @@
  * sizeof(int) < 4.  sizeof(int) > 4 is fine; all the world's not a VAX.
  */
 
-static const char *inet_ntop4 __P((const u_char *src, char *dst, size_t size));
-static const char *inet_ntop6 __P((const u_char *src, char *dst, size_t size));
+static const char *inet_ntop4 __P((const u_char *src, char *dst, socklen_t size));
+static const char *inet_ntop6 __P((const u_char *src, char *dst, socklen_t size));
 
 /* char *
  * inet_ntop(af, src, dst, size)
@@ -64,7 +64,7 @@
        int af;
        const void *src;
        char *dst;
-       size_t size;
+       socklen_t size;
 {
        switch (af) {
        case AF_INET:
@@ -93,7 +93,7 @@
 inet_ntop4(src, dst, size)
        const u_char *src;
        char *dst;
-       size_t size;
+       socklen_t size;
 {
        static const char fmt[] = "%u.%u.%u.%u";
        char tmp[sizeof "255.255.255.255"];
@@ -116,7 +116,7 @@
 inet_ntop6(src, dst, size)
        const u_char *src;
        char *dst;
-       size_t size;
+       socklen_t size;
 {
        /*
         * Note that int32_t and int16_t need only be "at least" large enough



Home | Main Index | Thread Index | Old Index