diff options
| author | Roy Marples <roy@marples.name> | 2008-03-31 10:23:59 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-03-31 10:23:59 +0000 |
| commit | 211da073490c5decd1deb46034385437a54ca977 (patch) | |
| tree | d3b10cacc4b36f14238f6ec89170114089f969bd /arp.c | |
| parent | 0a204e3b9886bd2a88084a5d5796a997ca610c84 (diff) | |
| download | dhcpcd-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
