Module Name: src Committed By: rillig Date: Tue Mar 30 15:31:51 UTC 2021
Modified Files: src/lib/libc/gen: sysctl.c Log Message: libc/gen: fix hack for previously unsupported lint initializers Supported since init.c 1.182 from 2021-03-30. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/lib/libc/gen/sysctl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/gen/sysctl.c diff -u src/lib/libc/gen/sysctl.c:1.37 src/lib/libc/gen/sysctl.c:1.38 --- src/lib/libc/gen/sysctl.c:1.37 Wed May 16 20:21:39 2018 +++ src/lib/libc/gen/sysctl.c Tue Mar 30 15:31:51 2021 @@ -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 @@ user_sysctl(const int *name, unsigned in * 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 @@ user_sysctl(const int *name, unsigned in _INT("atexit_max", USER_ATEXIT_MAX, -1, "The maximum number of functions that may be registered " "with atexit(3)"), -#endif /* !lint */ }; #undef _INT