diff options
| author | 2004-04-14 00:56:02 +0000 | |
|---|---|---|
| committer | 2004-04-14 00:56:02 +0000 | |
| commit | 3c41e82c680c97a95cf3fb06da0e74c82dca00c9 (patch) | |
| tree | f9fe36d07fc2c4fc665f0665b51b70aea7678eb4 /usr.sbin/dhcpd/icmp.c | |
| parent | bye bye (diff) | |
| download | wireguard-openbsd-3c41e82c680c97a95cf3fb06da0e74c82dca00c9.tar.xz wireguard-openbsd-3c41e82c680c97a95cf3fb06da0e74c82dca00c9.zip | |
more crap bites the dust
Diffstat (limited to 'usr.sbin/dhcpd/icmp.c')
| -rw-r--r-- | usr.sbin/dhcpd/icmp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/dhcpd/icmp.c b/usr.sbin/dhcpd/icmp.c index 8a215e862e1..167d483c687 100644 --- a/usr.sbin/dhcpd/icmp.c +++ b/usr.sbin/dhcpd/icmp.c @@ -53,7 +53,7 @@ static int icmp_protocol_fd; void icmp_startup (routep, handler) int routep; - void (*handler) PROTO ((struct iaddr, u_int8_t *, int)); + void (*handler)(struct iaddr, u_int8_t *, int); { struct protoent *proto; int protocol = 1; @@ -134,7 +134,7 @@ void icmp_echoreply (protocol) int status, len; socklen_t salen; struct iaddr ia; - void (*handler) PROTO ((struct iaddr, u_int8_t *, int)); + void (*handler)(struct iaddr, u_int8_t *, int); salen = sizeof from; status = recvfrom (protocol -> fd, (char *)icbuf, sizeof icbuf, 0, @@ -159,9 +159,8 @@ void icmp_echoreply (protocol) /* If we were given a second-stage handler, call it. */ if (protocol -> local) { - handler = ((void (*) PROTO ((struct iaddr, - u_int8_t *, int))) - protocol -> local); + handler = ((void (*)(struct iaddr, u_int8_t *, int)) + protocol -> local); memcpy (ia.iabuf, &from.sin_addr, sizeof from.sin_addr); ia.len = sizeof from.sin_addr; |
