From: Roy Marples Date: Thu, 28 Nov 2019 23:23:21 +0000 (+0000) Subject: privsep: Sprinkle some const X-Git-Tag: v9.0.0~205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e39a293fc5a913068d72d2ce138c0d24e64cb83;p=thirdparty%2Fdhcpcd.git privsep: Sprinkle some const --- diff --git a/src/privsep-inet.c b/src/privsep-inet.c index e13d0cd1..977a23b7 100644 --- a/src/privsep-inet.c +++ b/src/privsep-inet.c @@ -274,7 +274,7 @@ ps_inet_stop(struct dhcpcd_ctx *ctx) } ssize_t -ps_inet_sendmsg(struct dhcpcd_ctx *ctx, uint8_t cmd, struct msghdr *msg) +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); diff --git a/src/privsep-inet.h b/src/privsep-inet.h index da45d94f..70cd3237 100644 --- a/src/privsep-inet.h +++ b/src/privsep-inet.h @@ -31,7 +31,7 @@ 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, struct msghdr *); +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 *);