Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ulrich Drepper committed Sep 30, 2004
1 parent 7ff2ba9 commit af38d7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 1 addition & 2 deletions nscd/nscd_gethst_r.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit af38d7c

Please sign in to comment.