summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/relayd/Makefile4
-rw-r--r--usr.sbin/relayd/ca.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/relayd/Makefile b/usr.sbin/relayd/Makefile
index 87fc598f0a9..b61a0e5f45f 100644
--- a/usr.sbin/relayd/Makefile
+++ b/usr.sbin/relayd/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.29 2015/11/21 12:37:42 reyk Exp $
+# $OpenBSD: Makefile,v 1.30 2016/09/28 15:03:03 reyk Exp $
PROG= relayd
SRCS= parse.y
@@ -15,7 +15,7 @@ CFLAGS+= -Wall -I${.CURDIR} -I${.CURDIR}/../snmpd
CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes
CFLAGS+= -Wmissing-declarations
CFLAGS+= -Wshadow -Wpointer-arith
-CFLAGS+= -Wsign-compare
+CFLAGS+= -Wsign-compare -Wcast-qual
CLEANFILES+= y.tab.h
.include <bsd.prog.mk>
diff --git a/usr.sbin/relayd/ca.c b/usr.sbin/relayd/ca.c
index 13590d10fd7..9adb4e725a3 100644
--- a/usr.sbin/relayd/ca.c
+++ b/usr.sbin/relayd/ca.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ca.c,v 1.22 2016/09/03 14:09:04 reyk Exp $ */
+/* $OpenBSD: ca.c,v 1.23 2016/09/28 15:03:03 reyk Exp $ */
/*
* Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org>
@@ -285,7 +285,7 @@ rsae_send_imsg(int flen, const u_char *from, u_char *to, RSA *rsa,
iov[cnt].iov_base = &cko;
iov[cnt++].iov_len = sizeof(cko);
- iov[cnt].iov_base = (void *)from;
+ iov[cnt].iov_base = (void *)(uintptr_t)from;
iov[cnt++].iov_len = flen;
/*