diff options
author | Roland McGrath <roland@gnu.org> | 2002-09-20 20:34:06 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-09-20 20:34:06 +0000 |
commit | 9db6ee8d2fa48ade4451c0de80980b7f242c0f17 (patch) | |
tree | 2054d18cc95669fa2d6686cb9565a07407d26a84 /resolv/res_hconf.c | |
parent | dab9837091a70e6ed6ea0d6474e0508ea6fccde5 (diff) | |
download | glibc-9db6ee8d2fa48ade4451c0de80980b7f242c0f17.tar.gz glibc-9db6ee8d2fa48ade4451c0de80980b7f242c0f17.tar.xz glibc-9db6ee8d2fa48ade4451c0de80980b7f242c0f17.zip |
* sysdeps/generic/ifreq.h (__if_nextreq): New function.
* sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function. * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function. * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq for iterating through the list of interfaces. * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise. * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails. Reported by Bruno Haible <bruno@clisp.org>.
Diffstat (limited to 'resolv/res_hconf.c')
-rw-r--r-- | resolv/res_hconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/res_hconf.c b/resolv/res_hconf.c index b814f62dd3..8da2727a79 100644 --- a/resolv/res_hconf.c +++ b/resolv/res_hconf.c @@ -556,7 +556,7 @@ _res_hconf_reorder_addrs (struct hostent *hp) goto cleanup1; /* Copy usable interfaces in ifaddrs structure. */ - for (cur_ifr = ifr, i = 0; i < num; ++cur_ifr, ++i) + for (cur_ifr = ifr, i = 0; i < num; cur_ifr = __if_nextreq (cur_ifr), ++i) { if (cur_ifr->ifr_addr.sa_family != AF_INET) continue; |