summaryrefslogtreecommitdiffstats
path: root/arp.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-31 10:23:59 +0000
committerRoy Marples <roy@marples.name>2008-03-31 10:23:59 +0000
commit211da073490c5decd1deb46034385437a54ca977 (patch)
treed3b10cacc4b36f14238f6ec89170114089f969bd /arp.c
parent0a204e3b9886bd2a88084a5d5796a997ca610c84 (diff)
downloaddhcpcd-211da073490c5decd1deb46034385437a54ca977.tar.xz
read(2) works on ssize_t so we should use this rather than size_t for our buffers. A DHCP or ARP packet still easily fits into this.
Diffstat (limited to 'arp.c')
-rw-r--r--arp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arp.c b/arp.c
index 3db15580..160acf19 100644
--- a/arp.c
+++ b/arp.c
@@ -126,8 +126,8 @@ arp_claim(struct interface *iface, struct in_addr address)
{ -1, POLLIN, 0 },
{ -1, POLLIN, 0 }
};
- size_t bufpos = 0;
- size_t buflen = iface->buffer_length;
+ ssize_t bufpos = 0;
+ ssize_t buflen = iface->buffer_length;
int bytes;
int s = 0;
struct timeval stopat;