Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen libc/gen: fix hack for previously unsupported l...



details:   https://anonhg.NetBSD.org/src/rev/0e2238c9b6f0
branches:  trunk
changeset: 982085:0e2238c9b6f0
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Mar 30 15:31:51 2021 +0000

description:
libc/gen: fix hack for previously unsupported lint initializers

Supported since init.c 1.182 from 2021-03-30.

diffstat:

 lib/libc/gen/sysctl.c |  11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diffs (39 lines):

diff -r 89d5b31d67af -r 0e2238c9b6f0 lib/libc/gen/sysctl.c
--- a/lib/libc/gen/sysctl.c     Tue Mar 30 15:29:43 2021 +0000
+++ b/lib/libc/gen/sysctl.c     Tue Mar 30 15:31:51 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.c,v 1.37 2018/05/16 20:21:39 joerg Exp $        */
+/*     $NetBSD: sysctl.c,v 1.38 2021/03/30 15:31:51 rillig Exp $       */
 
 /*-
  * Copyright (c) 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)sysctl.c   8.2 (Berkeley) 1/4/94";
 #else
-__RCSID("$NetBSD: sysctl.c,v 1.37 2018/05/16 20:21:39 joerg Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.38 2021/03/30 15:31:51 rillig Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -120,12 +120,6 @@
         * the nodes under the "user" node
         */
        static const struct sysctlnode sysctl_usermib[] = {
-#if defined(lint)
-               /*
-                * lint doesn't like my initializers
-                */
-               0
-#else /* !lint */
                {
                        .sysctl_flags = SYSCTL_VERSION|CTLFLAG_PERMANENT|
                                CTLTYPE_STRING,
@@ -239,7 +233,6 @@
                _INT("atexit_max", USER_ATEXIT_MAX, -1,
                     "The maximum number of functions that may be registered "
                     "with atexit(3)"),
-#endif /* !lint */
        };
 #undef _INT
 



Home | Main Index | Thread Index | Old Index