summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-05-07 00:08:41 +0100
committerRoy Marples <roy@marples.name>2020-05-07 00:08:41 +0100
commit36a65e2c921742085d89afc4d2eecd9466fe5abc (patch)
treeff40fcfb439d889bf038bca948e26117fa0f9ef3 /src
parent904b0f7288119a7ddcd9aa862530746031cb9e36 (diff)
downloaddhcpcd-36a65e2c921742085d89afc4d2eecd9466fe5abc.tar.xz
privsep: Remove unsued function.
Diffstat (limited to 'src')
-rw-r--r--src/privsep-inet.c9
-rw-r--r--src/privsep-inet.h1
2 files changed, 1 insertions, 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 *);