diff options
author | 2017-04-12 19:17:30 +0000 | |
---|---|---|
committer | 2017-04-12 19:17:30 +0000 | |
commit | c0773b7b3237389419fe2c31c48f94e0f5fd6a97 (patch) | |
tree | 66a2ddad1e97926f0e01091d036c1db8b577bb80 | |
parent | Add missing function prototypes. Mark kw_cmp() as static like all (diff) | |
download | wireguard-openbsd-c0773b7b3237389419fe2c31c48f94e0f5fd6a97.tar.xz wireguard-openbsd-c0773b7b3237389419fe2c31c48f94e0f5fd6a97.zip |
One 'foo' per function is enough. Rename one to eliminate shadowing.
-rw-r--r-- | usr.sbin/dhcpd/dispatch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/dhcpd/dispatch.c b/usr.sbin/dhcpd/dispatch.c index cb23d17d2f7..7c456512940 100644 --- a/usr.sbin/dhcpd/dispatch.c +++ b/usr.sbin/dhcpd/dispatch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dispatch.c,v 1.42 2017/02/13 23:04:05 krw Exp $ */ +/* $OpenBSD: dispatch.c,v 1.43 2017/04/12 19:17:30 krw Exp $ */ /* * Copyright (c) 1995, 1996, 1997, 1998, 1999 @@ -156,13 +156,13 @@ discover_interfaces(int *rdomain) /* If we have the capability, extract link information and record it in a linked list. */ if (ifa->ifa_addr->sa_family == AF_LINK) { - struct sockaddr_dl *foo = + struct sockaddr_dl *sdl = ((struct sockaddr_dl *)(ifa->ifa_addr)); - tmp->index = foo->sdl_index; - tmp->hw_address.hlen = foo->sdl_alen; + tmp->index = sdl->sdl_index; + tmp->hw_address.hlen = sdl->sdl_alen; tmp->hw_address.htype = HTYPE_ETHER; /* XXX */ memcpy(tmp->hw_address.haddr, - LLADDR(foo), foo->sdl_alen); + LLADDR(sdl), sdl->sdl_alen); } else if (ifa->ifa_addr->sa_family == AF_INET) { struct iaddr addr; |