From bb58f63ce598763231fbf320bace1dbd777afd37 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Thu, 14 Jan 2016 19:23:10 +0000 Subject: [PATCH] arp.c tidy up. --- src/arp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arp.c b/src/arp.c index 73a0250..968455c 100644 --- a/src/arp.c +++ b/src/arp.c @@ -132,7 +132,7 @@ int find_mac(union mysockaddr *addr, unsigned char *mac, int lazy, time_t now) } #endif - /* Only accept poitive entries unless in lazy mode. */ + /* Only accept positive entries unless in lazy mode. */ if (arp->status != ARP_EMPTY || lazy || updated) { if (mac && arp->hwlen != 0) @@ -148,7 +148,7 @@ int find_mac(union mysockaddr *addr, unsigned char *mac, int lazy, time_t now) last = now; /* Mark all non-negative entries */ - for (arp = arps, up = &arps; arp; arp = arp->next) + for (arp = arps; arp; arp = arp->next) if (arp->status != ARP_EMPTY) arp->status = ARP_MARK;