diff options
author | 2013-04-05 19:31:36 +0000 | |
---|---|---|
committer | 2013-04-05 19:31:36 +0000 | |
commit | 1a4d4b6b918ac3135eab7fd4682a2dabd47bdd52 (patch) | |
tree | 55937b90e551f2f958685f8699ade724a0412867 /sbin/dhclient/bpf.c | |
parent | Nuke parameter to do_packet() not used since 2006. From dhill. (diff) | |
download | wireguard-openbsd-1a4d4b6b918ac3135eab7fd4682a2dabd47bdd52.tar.xz wireguard-openbsd-1a4d4b6b918ac3135eab7fd4682a2dabd47bdd52.zip |
send_packet() and writev() return ssize_t, not int. Use correct
type to store the returned value. From dhill.
Diffstat (limited to 'sbin/dhclient/bpf.c')
-rw-r--r-- | sbin/dhclient/bpf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/dhclient/bpf.c b/sbin/dhclient/bpf.c index 900039da52e..83b0914b8c4 100644 --- a/sbin/dhclient/bpf.c +++ b/sbin/dhclient/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.26 2013/02/14 20:39:46 krw Exp $ */ +/* $OpenBSD: bpf.c,v 1.27 2013/04/05 19:31:36 krw Exp $ */ /* BPF socket interface code, originally contributed by Archie Cobbs. */ @@ -266,7 +266,8 @@ send_packet(struct in_addr from, struct sockaddr_in *to, unsigned char buf[256]; struct iovec iov[IOVCNT]; struct msghdr msg; - int result, bufp = 0; + ssize_t result; + int bufp = 0; if (to->sin_addr.s_addr == INADDR_BROADCAST) { assemble_hw_header(buf, &bufp, hto); |