Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/net Don't bother de-linting inside __GNUC__ ifdefs.



details:   https://anonhg.NetBSD.org/src/rev/636d01353dfc
branches:  trunk
changeset: 472603:636d01353dfc
user:      christos <christos%NetBSD.org@localhost>
date:      Mon May 03 15:20:28 1999 +0000

description:
Don't bother de-linting inside __GNUC__ ifdefs.

diffstat:

 lib/libc/net/gethnamaddr.c |  21 +++++++++------------
 1 files changed, 9 insertions(+), 12 deletions(-)

diffs (63 lines):

diff -r eb7612f71733 -r 636d01353dfc lib/libc/net/gethnamaddr.c
--- a/lib/libc/net/gethnamaddr.c        Mon May 03 15:17:13 1999 +0000
+++ b/lib/libc/net/gethnamaddr.c        Mon May 03 15:20:28 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gethnamaddr.c,v 1.15 1999/04/18 02:27:53 lukem Exp $   */
+/*     $NetBSD: gethnamaddr.c,v 1.16 1999/05/03 15:20:28 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.15 1999/04/18 02:27:53 lukem Exp $");
+__RCSID("$NetBSD: gethnamaddr.c,v 1.16 1999/05/03 15:20:28 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -998,9 +998,8 @@
 
        name = va_arg(ap, char *);
        len = va_arg(ap, int);
-#if defined(__GNUC__) || defined(lint) /* to shut up gcc warnings */
-       /*LINTED*/
-       (void)(len ? &len : &len);
+#ifdef __GNUC__        /* to shut up gcc warnings */
+       (void)&len;
 #endif
        af = va_arg(ap, int);
 
@@ -1048,7 +1047,7 @@
 
        uaddr = va_arg(ap, unsigned char *);
        len = va_arg(ap, int);
-#ifdef __GNUC__                 /* to shut up gcc warnings */
+#ifdef __GNUC__ /* to shut up gcc warnings */
        (void)&len;
 #endif
        af = va_arg(ap, int);
@@ -1201,9 +1200,8 @@
 
        uaddr = va_arg(ap, unsigned char *);
        len = va_arg(ap, int);
-#if defined(__GNUC__) || defined(lint) /* to shut up gcc warnings */
-       /*LINTED*/
-       (void)(len ? &len : &len);
+#ifdef __GNUC__        /* to shut up gcc warnings */
+       (void)&len;
 #endif
        af = va_arg(ap, int);
        
@@ -1251,9 +1249,8 @@
 
        name = va_arg(ap, char *);
        len = va_arg(ap, int);
-#if defined(__GNUC__) || defined(lint) /* to shut up gcc warnings */
-       /*LINTED*/
-       (void)(len ? &len : &len);
+#ifdef __GNUC__ /* to shut up gcc warnings */
+       (void)&len;
 #endif
        af = va_arg(ap, int);
 



Home | Main Index | Thread Index | Old Index