summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcpd/udpsock.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-02-08 02:06:08 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-02-08 02:06:08 +0000
commit46fc608a65ee33bcba99b0c67704ae3abe324cd0 (patch)
treebafe58221a3beb76badff83c773aae7e9968337b /usr.sbin/dhcpd/udpsock.c
parentc32293b2947d8d6487936cf76a924f401ce9517b (diff)
sys/param.h -> sys/types.h. No need to drag in nitems() only to
use it once on an array declared iov[1]. Just use '1'. ok yasuoka@
Diffstat (limited to 'usr.sbin/dhcpd/udpsock.c')
-rw-r--r--usr.sbin/dhcpd/udpsock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/dhcpd/udpsock.c b/usr.sbin/dhcpd/udpsock.c
index 46e820d8fc0..784ed6d65db 100644
--- a/usr.sbin/dhcpd/udpsock.c
+++ b/usr.sbin/dhcpd/udpsock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udpsock.c,v 1.4 2016/02/06 23:50:10 krw Exp $ */
+/* $OpenBSD: udpsock.c,v 1.5 2016/02/08 02:06:07 krw Exp $ */
/*
* Copyright (c) 2014 YASUOKA Masahiko <yasuoka@openbsd.org>
@@ -16,7 +16,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/param.h> /* nitems */
+#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
@@ -112,7 +112,7 @@ udpsock_handler(struct protocol *protocol)
m.msg_name = &ss;
m.msg_namelen = sizeof(ss);
m.msg_iov = iov;
- m.msg_iovlen = nitems(iov);
+ m.msg_iovlen = 1;
m.msg_control = cbuf;
m.msg_controllen = sizeof(cbuf);