Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/net PR/32616: Yves-Emmanuel JUTARD: Fix compilation...



details:   https://anonhg.NetBSD.org/src/rev/7f22675df820
branches:  trunk
changeset: 587440:7f22675df820
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jan 24 17:29:33 2006 +0000

description:
PR/32616: Yves-Emmanuel JUTARD: Fix compilation with -DDEBUG

diffstat:

 lib/libc/net/gethnamaddr.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r fad55be75ce5 -r 7f22675df820 lib/libc/net/gethnamaddr.c
--- a/lib/libc/net/gethnamaddr.c        Tue Jan 24 17:24:37 2006 +0000
+++ b/lib/libc/net/gethnamaddr.c        Tue Jan 24 17:29:33 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gethnamaddr.c,v 1.67 2005/09/15 23:33:41 tsarna Exp $  */
+/*     $NetBSD: gethnamaddr.c,v 1.68 2006/01/24 17:29:33 christos Exp $        */
 
 /*
  * ++Copyright++ 1985, 1988, 1993
@@ -57,7 +57,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.67 2005/09/15 23:33:41 tsarna Exp $");
+__RCSID("$NetBSD: gethnamaddr.c,v 1.68 2006/01/24 17:29:33 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -133,7 +133,7 @@
 } align;
 
 #ifdef DEBUG
-static void dprintf(char *, res_state *, ...)
+static void dprintf(const char *, res_state, ...)
        __attribute__((__format__(__printf__, 1, 3)));
 #endif
 static struct hostent *getanswer(const querybuf *, int, const char *, int,
@@ -174,7 +174,7 @@
 
 #ifdef DEBUG
 static void
-dprintf(char *msg, res_state res, ...)
+dprintf(const char *msg, res_state res, ...)
 {
        _DIAGASSERT(msg != NULL);
 
@@ -182,7 +182,7 @@
                int save = errno;
                va_list ap;
 
-               va_start (ap, msg);
+               va_start (ap, res);
                vprintf(msg, ap);
                va_end (ap);
                



Home | Main Index | Thread Index | Old Index