diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-09-06 19:52:31 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-09-06 19:52:31 +0000 |
commit | eaeb5fb5039b6d96bf2799770a0bf6cf06f1fbfc (patch) | |
tree | a5792cf8425aa61f5b5850480d549ceb54de9166 /usr.sbin/dhcp/common/icmp.c | |
parent | 2838082537c9c9631397a803467b78e48774a196 (diff) |
socklen_t use; pvalchev ok
Diffstat (limited to 'usr.sbin/dhcp/common/icmp.c')
-rw-r--r-- | usr.sbin/dhcp/common/icmp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/dhcp/common/icmp.c b/usr.sbin/dhcp/common/icmp.c index c554e80c8d9..8a215e862e1 100644 --- a/usr.sbin/dhcp/common/icmp.c +++ b/usr.sbin/dhcp/common/icmp.c @@ -131,14 +131,14 @@ void icmp_echoreply (protocol) struct icmp *icfrom; struct sockaddr_in from; u_int8_t icbuf [1500]; - int status; - int len; + int status, len; + socklen_t salen; struct iaddr ia; void (*handler) PROTO ((struct iaddr, u_int8_t *, int)); - len = sizeof from; + salen = sizeof from; status = recvfrom (protocol -> fd, (char *)icbuf, sizeof icbuf, 0, - (struct sockaddr *)&from, &len); + (struct sockaddr *)&from, &salen); if (status < 0) { warn ("icmp_echoreply: %m"); return; |