]> git.ipfire.org Git - people/ms/dnsmasq.git/commitdiff
arp.c tidy up.
authorSimon Kelley <simon@thekelleys.org.uk>
Thu, 14 Jan 2016 19:23:10 +0000 (19:23 +0000)
committerSimon Kelley <simon@thekelleys.org.uk>
Thu, 14 Jan 2016 19:23:10 +0000 (19:23 +0000)
src/arp.c

index 73a0250eae7c8331c16d3fa53e617843fcc2f513..968455cd5a1fa43005cd47a3aa9e28641ace319b 100644 (file)
--- 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;