]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: Remove unsued function.
authorRoy Marples <roy@marples.name>
Wed, 6 May 2020 23:08:41 +0000 (00:08 +0100)
committerRoy Marples <roy@marples.name>
Wed, 6 May 2020 23:08:41 +0000 (00:08 +0100)
src/privsep-inet.c
src/privsep-inet.h

index a21bd40527132d1cd2ae0c66175df309d72f3584..0191ccd7d84189995fe5dcdcbaef3f865497a997 100644 (file)
@@ -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
 
index 4d06ca0819902973c9a62649ca34ca70621f2ff5..01933a728b7979e5d9bfd5b2bc4bc52b2cc32564 100644 (file)
@@ -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 *);