Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/dhcpcd/dist avoid macro clash.



details:   https://anonhg.NetBSD.org/src/rev/5f9455f18b30
branches:  trunk
changeset: 334711:5f9455f18b30
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 02 22:13:13 2014 +0000

description:
avoid macro clash.

diffstat:

 external/bsd/dhcpcd/dist/if.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (55 lines):

diff -r 7bd0c342c0df -r 5f9455f18b30 external/bsd/dhcpcd/dist/if.c
--- a/external/bsd/dhcpcd/dist/if.c     Tue Dec 02 21:49:36 2014 +0000
+++ b/external/bsd/dhcpcd/dist/if.c     Tue Dec 02 22:13:13 2014 +0000
@@ -1,5 +1,5 @@
 #include <sys/cdefs.h>
- __RCSID("$NetBSD: if.c,v 1.7 2014/11/26 13:43:06 roy Exp $");
+ __RCSID("$NetBSD: if.c,v 1.8 2014/12/02 22:13:13 christos Exp $");
 
 /*
  * dhcpcd - DHCP client daemon
@@ -187,7 +187,7 @@
        struct ifaddrs *ifaddrs, *ifa;
        char *p;
        int i;
-       sa_family_t sdl_type;
+       sa_family_t sdltype;
        struct if_head *ifs;
        struct interface *ifp;
 #ifdef __linux__
@@ -321,7 +321,7 @@
                ifp->flags = ifa->ifa_flags;
                ifp->carrier = if_carrier(ifp);
 
-               sdl_type = 0;
+               sdltype = 0;
                if (ifa->ifa_addr != NULL) {
 #ifdef AF_LINK
                        sdl = (const struct sockaddr_dl *)(void *)ifa->ifa_addr;
@@ -346,7 +346,7 @@
                        memcpy(&ifp->linkaddr, sdl, sdl->sdl_len);
 #endif
                        ifp->index = sdl->sdl_index;
-                       sdl_type = sdl->sdl_type;
+                       sdltype = sdl->sdl_type;
                        switch(sdl->sdl_type) {
 #ifdef IFT_BRIDGE
                        case IFT_BRIDGE:
@@ -388,7 +388,7 @@
 #elif AF_PACKET
                        sll = (const struct sockaddr_ll *)(void *)ifa->ifa_addr;
                        ifp->index = (unsigned int)sll->sll_ifindex;
-                       ifp->family = sdl_type = sll->sll_hatype;
+                       ifp->family = sdltype = sll->sll_hatype;
                        ifp->hwlen = sll->sll_halen;
                        if (ifp->hwlen != 0)
                                memcpy(ifp->hwaddr, sll->sll_addr, ifp->hwlen);
@@ -423,7 +423,7 @@
                                syslog(LOG_WARNING,
                                    "%s: unsupported interface type %.2x, "
                                    "family %.2x",
-                                   ifp->name, sdl_type, ifp->family);
+                                   ifp->name, sdltype, ifp->family);
                                break;
                        }
                }



Home | Main Index | Thread Index | Old Index