Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/net correct DIAGASSERT



details:   https://anonhg.NetBSD.org/src/rev/33ef780961e0
branches:  trunk
changeset: 533268:33ef780961e0
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Jun 26 09:39:48 2002 +0000

description:
correct DIAGASSERT

diffstat:

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

diffs (27 lines):

diff -r 3d3f7905f73a -r 33ef780961e0 lib/libc/net/gethnamaddr.c
--- a/lib/libc/net/gethnamaddr.c        Wed Jun 26 09:38:37 2002 +0000
+++ b/lib/libc/net/gethnamaddr.c        Wed Jun 26 09:39:48 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gethnamaddr.c,v 1.46 2002/06/26 06:00:07 itojun Exp $  */
+/*     $NetBSD: gethnamaddr.c,v 1.47 2002/06/26 09:39:48 itojun 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.46 2002/06/26 06:00:07 itojun Exp $");
+__RCSID("$NetBSD: gethnamaddr.c,v 1.47 2002/06/26 09:39:48 itojun Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -991,7 +991,7 @@
 
        _DIAGASSERT(hp != NULL);
        _DIAGASSERT(bpp != NULL);
-       _DIAGASSERT(lenp != NULL);
+       _DIAGASSERT(ep != NULL);
 
        if (hp->h_addrtype != AF_INET || hp->h_length != INADDRSZ)
                return;



Home | Main Index | Thread Index | Old Index