diff options
Diffstat (limited to 'usr.sbin/dhcp/common')
-rw-r--r-- | usr.sbin/dhcp/common/icmp.c | 8 | ||||
-rw-r--r-- | usr.sbin/dhcp/common/socket.c | 2 |
2 files changed, 5 insertions, 5 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; diff --git a/usr.sbin/dhcp/common/socket.c b/usr.sbin/dhcp/common/socket.c index 711b22dc833..13204ddcbd1 100644 --- a/usr.sbin/dhcp/common/socket.c +++ b/usr.sbin/dhcp/common/socket.c @@ -142,7 +142,7 @@ void fallback_discard (protocol) { char buf [1540]; struct sockaddr_in from; - int flen = sizeof from; + socklen_t flen = sizeof from; int status; struct interface_info *interface = protocol -> local; |