From c7047b246b43453c8ecd42154b608b6f899b8b9e Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sun, 6 Sep 2020 11:58:29 +0100 Subject: [PATCH] privsep: dropprivs can be static --- src/privsep.c | 2 +- src/privsep.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/privsep.c b/src/privsep.c index 76037d91..98d57857 100644 --- a/src/privsep.c +++ b/src/privsep.c @@ -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; diff --git a/src/privsep.h b/src/privsep.h index 877f1527..c7895432 100644 --- a/src/privsep.h +++ b/src/privsep.h @@ -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 *); -- 2.47.3