diff options
author | ume <ume@FreeBSD.org> | 2006-08-04 10:21:11 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2006-08-04 10:21:11 +0000 |
commit | c9a3ba7309c2fe62af2ad775150cbbaf2b53ecb7 (patch) | |
tree | 8e8f560d0143786c52dff84bb55bbfe3877000cb | |
parent | 209e4786e7062e14c1123326850d4bcdbd9c605d (diff) | |
download | FreeBSD-src-c9a3ba7309c2fe62af2ad775150cbbaf2b53ecb7.zip FreeBSD-src-c9a3ba7309c2fe62af2ad775150cbbaf2b53ecb7.tar.gz |
_close() should be called instead of close() here.
-rw-r--r-- | lib/libc/resolv/res_init.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/resolv/res_init.c b/lib/libc/resolv/res_init.c index 30ff9dc..a42eb80 100644 --- a/lib/libc/resolv/res_init.c +++ b/lib/libc/resolv/res_init.c @@ -77,6 +77,8 @@ __FBSDID("$FreeBSD$"); #include "port_before.h" +#include "namespace.h" + #include <sys/types.h> #include <sys/param.h> #include <sys/socket.h> @@ -93,6 +95,8 @@ __FBSDID("$FreeBSD$"); #include <unistd.h> #include <netdb.h> +#include "un-namespace.h" + #include "port_after.h" /* ensure that sockaddr_in6 and IN6ADDR_ANY_INIT are declared / defined */ @@ -735,13 +739,13 @@ res_nclose(res_state statp) { int ns; if (statp->_vcsock >= 0) { - (void) close(statp->_vcsock); + (void) _close(statp->_vcsock); statp->_vcsock = -1; statp->_flags &= ~(RES_F_VC | RES_F_CONN); } for (ns = 0; ns < statp->_u._ext.nscount; ns++) { if (statp->_u._ext.nssocks[ns] != -1) { - (void) close(statp->_u._ext.nssocks[ns]); + (void) _close(statp->_u._ext.nssocks[ns]); statp->_u._ext.nssocks[ns] = -1; } } |