Index | Thread | Search

From:
Takumi Matsuura <tm99hjkl@gmail.com>
Subject:
doas: make unveilcommands() static
To:
tech@openbsd.org
Date:
Sun, 3 May 2026 22:58:41 +0900

Download raw body.

Thread
  • Takumi Matsuura:

    doas: make unveilcommands() static

unveilcommands() is only used within doas.c and is not declared
in doas.h. Make it static, per style(9).

Index: doas.c
===================================================================
RCS file: /cvs/src/usr.bin/doas/doas.c,v
diff -u -p -u -r1.99 doas.c
--- doas.c	15 Feb 2024 18:57:58 -0000	1.99
+++ doas.c	3 May 2026 13:33:43 -0000
@@ -264,7 +264,7 @@ good:
 	}
 }
 
-int
+static int
 unveilcommands(const char *ipath, const char *cmd)
 {
 	char *path = NULL, *p;