Index | Thread | Search

From:
Miod Vallat <miod@online.fr>
Subject:
dead code tells no tales, 2/16
To:
tech@openbsd.org
Date:
Sun, 20 Sep 2026 21:03:40 +0000

Download raw body.

Thread
These two globals do not appear to be used anywhere in the kernel.

Index: sys/conf/newvers.sh
===================================================================
RCS file: /OpenBSD/src/sys/conf/newvers.sh,v
diff -u -p -u -p -r1.217 newvers.sh
--- sys/conf/newvers.sh	16 Jul 2026 06:21:10 -0000	1.217
+++ sys/conf/newvers.sh	20 Sep 2026 16:47:44 -0000
@@ -81,8 +81,6 @@ cat >vers.c <<eof
 const char ostype[] = "${ost}";
 const char osrelease[] = "${osr}";
 const char osversion[] = "${id}#${v}";
-const char sccs[] =
-    "    @(#)${ost} ${osr}" STATUS " (${id}) #${v}: ${t}\n";
 const char version[512] =
     "${ost} ${osr}" STATUS " (${id}) #${v}: ${t}\n    ${u}@${h}:${d}\n";
 eof
Index: sys/conf/param.c
===================================================================
RCS file: /OpenBSD/src/sys/conf/param.c,v
diff -u -p -u -p -r1.53 param.c
--- sys/conf/param.c	6 Aug 2025 14:00:33 -0000	1.53
+++ sys/conf/param.c	20 Sep 2026 16:47:44 -0000
@@ -124,10 +124,3 @@ struct	seminfo seminfo = {
 	SEMAEM		/* adjust on exit max value */
 };
 #endif
-
-/*
- * This has to be allocated somewhere; allocating
- * them here forces loader errors if this file is omitted
- * (if they've been externed everywhere else; hah!).
- */
-struct	utsname utsname;