summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mrinfo
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-06-11 23:33:24 +0000
committerderaadt <deraadt@openbsd.org>2003-06-11 23:33:24 +0000
commit4b6e8b27fd7e8ea4847718ee78a20614eb61048b (patch)
tree5c1f1a5bccec75baa5e2477c1c6a1a2c22121622 /usr.sbin/mrinfo
parentde-register (diff)
downloadwireguard-openbsd-4b6e8b27fd7e8ea4847718ee78a20614eb61048b.tar.xz
wireguard-openbsd-4b6e8b27fd7e8ea4847718ee78a20614eb61048b.zip
some ansification, some de-register
Diffstat (limited to 'usr.sbin/mrinfo')
-rw-r--r--usr.sbin/mrinfo/mrinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/mrinfo/mrinfo.c b/usr.sbin/mrinfo/mrinfo.c
index d9471447358..89a861f5cfe 100644
--- a/usr.sbin/mrinfo/mrinfo.c
+++ b/usr.sbin/mrinfo/mrinfo.c
@@ -76,7 +76,7 @@
#ifndef lint
static char rcsid[] =
- "@(#) $OpenBSD: mrinfo.c,v 1.15 2003/03/05 21:05:39 deraadt Exp $";
+ "@(#) $OpenBSD: mrinfo.c,v 1.16 2003/06/11 23:33:28 deraadt Exp $";
/* original rcsid:
"@(#) Header: mrinfo.c,v 1.6 93/04/08 15:14:16 van Exp (LBL)";
*/
@@ -205,7 +205,8 @@ accept_neighbors(u_int32_t src, u_int32_t dst, u_char *p, int datalen,
thresh = *p++;
ncount = *p++;
while (--ncount >= 0) {
- register u_int32_t neighbor;
+ u_int32_t neighbor;
+
GET_ADDR(neighbor);
neighbor = htonl(neighbor);
printf(" %s -> ", inet_fmt(laddr, s1));