Mercurial > hg > dhcpcd
changeset 1683:57b2cea02071 draft
Remove FreeBSD memory debug as I submitted a fix for their libc: PR bin/166483.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Thu, 29 Mar 2012 09:11:48 +0000 |
| parents | 36d2de733bcd |
| children | 213139f15d86 |
| files | net.c |
| diffstat | 1 files changed, 0 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/net.c Wed Mar 28 10:26:20 2012 +0000 +++ b/net.c Thu Mar 29 09:11:48 2012 +0000 @@ -74,21 +74,6 @@ int socket_afnet = -1; -#if defined(__FreeBSD__) && defined(DEBUG_MEMORY) -/* FreeBSD does not zero the struct, causing valgrind errors */ -unsigned int -if_nametoindex(const char *ifname) -{ - struct ifreq ifr; - - memset(&ifr, 0, sizeof(ifr)); - strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); - if (ioctl(socket_afnet, SIOCGIFINDEX, &ifr) != -1) - return ifr.ifr_index; - return 0; -} -#endif - int inet_ntocidr(struct in_addr address) {
