From eaa779f6a000e37a2bde7f3b1a8f2672fb5d6093 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 7 May 2020 00:08:41 +0100 Subject: [PATCH] privsep: Remove unsued function. --- src/privsep-inet.c | 9 +-------- src/privsep-inet.h | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/privsep-inet.c b/src/privsep-inet.c index a21bd405..0191ccd7 100644 --- a/src/privsep-inet.c +++ b/src/privsep-inet.c @@ -279,13 +279,6 @@ ps_inet_stop(struct dhcpcd_ctx *ctx) return ps_dostop(ctx, &ctx->ps_inet_pid, &ctx->ps_inet_fd); } -ssize_t -ps_inet_sendmsg(struct dhcpcd_ctx *ctx, uint8_t cmd, const struct msghdr *msg) -{ - - return ps_sendmsg(ctx, ctx->ps_inet_fd, cmd, 0, msg); -} - #ifdef INET static void ps_inet_recvinbootp(void *arg) @@ -579,7 +572,7 @@ ssize_t ps_inet_sendnd(struct interface *ifp, const struct msghdr *msg) { - return ps_inet_sendmsg(ifp->ctx, PS_ND, msg); + return ps_sendmsg(ifp->ctx, ifp->ctx->ps_inet_fd, PS_ND, 0, msg); } #endif diff --git a/src/privsep-inet.h b/src/privsep-inet.h index 4d06ca08..01933a72 100644 --- a/src/privsep-inet.h +++ b/src/privsep-inet.h @@ -31,7 +31,6 @@ pid_t ps_inet_start(struct dhcpcd_ctx *); int ps_inet_stop(struct dhcpcd_ctx *); -ssize_t ps_inet_sendmsg(struct dhcpcd_ctx *, uint8_t, const struct msghdr *); ssize_t ps_inet_cmd(struct dhcpcd_ctx *, struct ps_msghdr *, struct msghdr *); ssize_t ps_inet_dispatch(void *, struct ps_msghdr *, struct msghdr *); -- 2.47.3