From: Roy Marples Date: Wed, 6 May 2020 23:08:41 +0000 (+0100) Subject: privsep: Remove unsued function. X-Git-Tag: v9.1.0~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaa779f6a000e37a2bde7f3b1a8f2672fb5d6093;p=thirdparty%2Fdhcpcd.git privsep: Remove unsued function. --- 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 *);