summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2013-07-03 21:58:26 +0000
committerpjd <pjd@FreeBSD.org>2013-07-03 21:58:26 +0000
commit837e9b7cac292f9c8c6bc6e015ee55a6b35a7ce5 (patch)
tree37b4994a55f54638f7a7f8d4ac3175fb9b1a3fc1 /sbin/dhclient
parent1bb08cf6ef3fc73abf64cccbfb8383d67b2adedb (diff)
downloadFreeBSD-src-837e9b7cac292f9c8c6bc6e015ee55a6b35a7ce5.zip
FreeBSD-src-837e9b7cac292f9c8c6bc6e015ee55a6b35a7ce5.tar.gz
MFp4 @229474:
iov_base field is 'void *' in FreeBSD, no need to cast. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/bpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/bpf.c b/sbin/dhclient/bpf.c
index a840294..93410a8 100644
--- a/sbin/dhclient/bpf.c
+++ b/sbin/dhclient/bpf.c
@@ -264,9 +264,9 @@ send_packet(struct interface_info *interface, struct dhcp_packet *raw,
assemble_udp_ip_header(buf, &bufp, from.s_addr, to.s_addr,
htons(REMOTE_PORT), (unsigned char *)raw, len);
- iov[0].iov_base = (char *)buf;
+ iov[0].iov_base = buf;
iov[0].iov_len = bufp;
- iov[1].iov_base = (char *)raw;
+ iov[1].iov_base = raw;
iov[1].iov_len = len;
/* Fire it off */
OpenPOWER on IntegriCloud