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 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.
#include <string.h>
#include <unistd.h>
#include <arpa/nameser.h>
-#include <sys/mman.h>
#include <not-cancel.h>
#include "nscd-client.h"
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);