]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: dropprivs can be static
authorRoy Marples <roy@marples.name>
Sun, 6 Sep 2020 10:58:29 +0000 (11:58 +0100)
committerRoy Marples <roy@marples.name>
Sun, 6 Sep 2020 10:58:29 +0000 (11:58 +0100)
src/privsep.c
src/privsep.h

index 76037d9116df3cce4dd2cf829bc8a8c9696195ca..98d57857785e0054c6b3d27fb90c94b5516de10d 100644 (file)
@@ -112,7 +112,7 @@ ps_init(struct dhcpcd_ctx *ctx)
        return 0;
 }
 
-int
+static int
 ps_dropprivs(struct dhcpcd_ctx *ctx)
 {
        struct passwd *pw = ctx->ps_user;
index 877f1527e6f7bfb672d8476ba9145c5754efe72f..c789543282fc0cebb32c70fb579745ca4aa2767d 100644 (file)
@@ -166,7 +166,6 @@ TAILQ_HEAD(ps_process_head, ps_process);
 #endif
 
 int ps_init(struct dhcpcd_ctx *);
-int ps_dropprivs(struct dhcpcd_ctx *);
 int ps_start(struct dhcpcd_ctx *);
 int ps_stop(struct dhcpcd_ctx *);
 int ps_mastersandbox(struct dhcpcd_ctx *);