]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
OpenBSD: Fix compile with prior
authorRoy Marples <roy@marples.name>
Wed, 24 Aug 2022 09:17:42 +0000 (10:17 +0100)
committerRoy Marples <roy@marples.name>
Fri, 26 Aug 2022 10:31:03 +0000 (11:31 +0100)
src/if-bsd.c
src/privsep-bsd.c

index 9f764179f3c1be23a7d094dab039f0577a425bec..4640f0da1d03916e60bc72703994003432873471 100644 (file)
@@ -918,7 +918,7 @@ if_copyrt(struct dhcpcd_ctx *ctx, struct rt *rt, const struct rt_msghdr *rtm)
 static int
 if_sysctl(struct dhcpcd_ctx *ctx,
     const int *name, u_int namelen,
-    void *oldp, size_t *oldlenp, const void *newp, size_t newlen)
+    void *oldp, size_t *oldlenp, void *newp, size_t newlen)
 {
 #if defined(PRIVSEP) && defined(HAVE_CAPSICUM)
        if (IN_PRIVSEP(ctx))
index eee4a398ea6cf40a2a3b892fee09a4e1a7e0e0b8..39cb223c01e6f8d9d3d138b543a29fa85cffb9a9 100644 (file)
@@ -27,6 +27,7 @@
  */
 
 #include <sys/ioctl.h>
+#include <sys/types.h>
 #include <sys/sysctl.h>
 
 /* Need these for filtering the ioctls */