changeset 5444:d861892268ff draft

privsep: dropprivs can be static
author Roy Marples <roy@marples.name>
date Sun, 06 Sep 2020 11:58:29 +0100
parents 2d1bbc57daeb
children 2070a61faddd
files src/privsep.c src/privsep.h
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/privsep.c	Sun Sep 06 11:57:19 2020 +0100
+++ b/src/privsep.c	Sun Sep 06 11:58:29 2020 +0100
@@ -112,7 +112,7 @@
 	return 0;
 }
 
-int
+static int
 ps_dropprivs(struct dhcpcd_ctx *ctx)
 {
 	struct passwd *pw = ctx->ps_user;
--- a/src/privsep.h	Sun Sep 06 11:57:19 2020 +0100
+++ b/src/privsep.h	Sun Sep 06 11:58:29 2020 +0100
@@ -166,7 +166,6 @@
 #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 *);