Index | Thread | Search

From:
Miod Vallat <miod@online.fr>
Subject:
Re: dead code tells no tales, 2/16
To:
David Leadbeater <dgl@dgl.cx>
Cc:
tech@openbsd.org
Date:
Mon, 21 Sep 2026 17:59:58 +0000

Download raw body.

Thread
> > -const char sccs[] =
> > -    "    @(#)${ost} ${osr}" STATUS " (${id}) #${v}: ${t}\n";
> 
> This one is read by what(1).

Right; although I don't think many people run what(1) on kernel binaries
anymore (and you can get that information with strings(1) or, more
easily, with config -e).

But let's drop this chunk, and the diff becomes:

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;