changeset 5194:c37ba778f32b draft

privsep: Remove unsued function.
author Roy Marples <roy@marples.name>
date Thu, 07 May 2020 00:08:41 +0100
parents 658eb5d94c0b
children 45226e01fbdd
files src/privsep-inet.c src/privsep-inet.h
diffstat 2 files changed, 1 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/privsep-inet.c	Tue May 05 19:03:49 2020 +0000
+++ b/src/privsep-inet.c	Thu May 07 00:08:41 2020 +0100
@@ -279,13 +279,6 @@
 	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 @@
 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
 
--- a/src/privsep-inet.h	Tue May 05 19:03:49 2020 +0000
+++ b/src/privsep-inet.h	Thu May 07 00:08:41 2020 +0100
@@ -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 *);