about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-30 05:16:40 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-30 05:16:40 +0000
commitaf38d7ce63a5c0196a1b2e353f84081ed17e9ead (patch)
tree20bac992dc2027214adcf78b78d73314ca52b098
parent7ff2ba908a0341bf3e6f1f7f6db2cac7f89935b5 (diff)
downloadglibc-af38d7ce63a5c0196a1b2e353f84081ed17e9ead.tar.gz
glibc-af38d7ce63a5c0196a1b2e353f84081ed17e9ead.tar.xz
glibc-af38d7ce63a5c0196a1b2e353f84081ed17e9ead.zip
Update.
2004-09-29  Ulrich Drepper  <drepper@redhat.com>

	* nscd/nscd_gethst_r.c (nscd_gethst_r): Use correct constant for
	testing result of __nscd_get_map_ref.
-rw-r--r--ChangeLog5
-rw-r--r--nscd/nscd_gethst_r.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 54c4c85c93..eab4b37a50 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-29  Ulrich Drepper  <drepper@redhat.com>
+
+	* nscd/nscd_gethst_r.c (nscd_gethst_r): Use correct constant for
+	testing result of __nscd_get_map_ref.
+
 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
 
 	* sysdeps/i386/fpu/s_fdim.S (__fdim): Handle +inf/+inf.
diff --git a/nscd/nscd_gethst_r.c b/nscd/nscd_gethst_r.c
index 42327dd317..5bd5997de0 100644
--- a/nscd/nscd_gethst_r.c
+++ b/nscd/nscd_gethst_r.c
@@ -27,7 +27,6 @@
 #include <string.h>
 #include <unistd.h>
 #include <arpa/nameser.h>
-#include <sys/mman.h>
 #include <not-cancel.h>
 
 #include "nscd-client.h"
@@ -121,7 +120,7 @@ nscd_gethst_r (const char *key, size_t keylen, request_type type,
   struct mapped_database *mapped = __nscd_get_map_ref (GETFDHST, "hosts",
 						       &map_handle, &gc_cycle);
  retry:
-  if (mapped != MAP_FAILED)
+  if (mapped != NO_MAPPING)
     {
       const struct datahead *found = __nscd_cache_search (type, key, keylen,
 							  mapped);