Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen Remove a bit of lint.



details:   https://anonhg.NetBSD.org/src/rev/a4f6eb4d490e
branches:  trunk
changeset: 487596:a4f6eb4d490e
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Jun 09 16:22:54 2000 +0000

description:
Remove a bit of lint.

diffstat:

 lib/libc/gen/nlist_coff.c  |  8 ++++----
 lib/libc/gen/nlist_ecoff.c |  8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (58 lines):

diff -r 62d5c58ceeed -r a4f6eb4d490e lib/libc/gen/nlist_coff.c
--- a/lib/libc/gen/nlist_coff.c Fri Jun 09 16:07:55 2000 +0000
+++ b/lib/libc/gen/nlist_coff.c Fri Jun 09 16:22:54 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nlist_coff.c,v 1.1 2000/01/03 02:13:32 msaitoh Exp $   */
+/*     $NetBSD: nlist_coff.c,v 1.2 2000/06/09 16:22:54 simonb Exp $    */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: nlist_coff.c,v 1.1 2000/01/03 02:13:32 msaitoh Exp $");
+__RCSID("$NetBSD: nlist_coff.c,v 1.2 2000/06/09 16:22:54 simonb Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -55,8 +55,8 @@
 
 #ifdef NLIST_COFF
 #define        check(off, size)        ((off < 0) || (off + size > mappedsize))
-#define        BAD                     do { rv = -1; goto out; } while (0)
-#define        BADUNMAP                do { rv = -1; goto unmap; } while (0)
+#define        BAD                     do { rv = -1; goto out; } while (/*CONSTCOND*/0)
+#define        BADUNMAP                do { rv = -1; goto unmap; } while (/*CONSTCOND*/0)
 
 #define ES_LEN 18
 struct coff_extsym {
diff -r 62d5c58ceeed -r a4f6eb4d490e lib/libc/gen/nlist_ecoff.c
--- a/lib/libc/gen/nlist_ecoff.c        Fri Jun 09 16:07:55 2000 +0000
+++ b/lib/libc/gen/nlist_ecoff.c        Fri Jun 09 16:22:54 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nlist_ecoff.c,v 1.10 1999/09/20 04:39:03 lukem Exp $   */
+/*     $NetBSD: nlist_ecoff.c,v 1.11 2000/06/09 16:22:55 simonb Exp $  */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: nlist_ecoff.c,v 1.10 1999/09/20 04:39:03 lukem Exp $");
+__RCSID("$NetBSD: nlist_ecoff.c,v 1.11 2000/06/09 16:22:55 simonb Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -55,8 +55,8 @@
 
 #ifdef NLIST_ECOFF
 #define        check(off, size)        ((off < 0) || (off + size > mappedsize))
-#define        BAD                     do { rv = -1; goto out; } while (0)
-#define        BADUNMAP                do { rv = -1; goto unmap; } while (0)
+#define        BAD                     do { rv = -1; goto out; } while (/*CONSTCOND*/0)
+#define        BADUNMAP                do { rv = -1; goto unmap; } while (/*CONSTCOND*/0)
 
 int
 __fdnlist_ecoff(fd, list)



Home | Main Index | Thread Index | Old Index