Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* nscd/nscd_getai.c: Use NO_MAPPING instead of MAP_FAILED for test
	of failing __nscd_get_map_ref.  Fix a few typos.
  • Loading branch information
Ulrich Drepper committed Sep 29, 2004
1 parent 4f21c95 commit 8117719
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2004-09-28 Ulrich Drepper <drepper@redhat.com>

* nscd/nscd_getai.c: Use NO_MAPPING instead of MAP_FAILED for test
of failing __nscd_get_map_ref. Fix a few typos.

* sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Make sure
SIGSETXID is not blocked.
* sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Likewise.
Expand Down
6 changes: 3 additions & 3 deletions nscd/nscd_getai.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ libc_locked_map_ptr (map_handle);
/* Note that we only free the structure if necessary. The memory
mapping is not removed since it is not visible to the malloc
handling. */
libc_freeres_fn (gr_map_free)
libc_freeres_fn (ai_map_free)
{

if (map_handle.mapped != NO_MAPPING)
Expand All @@ -63,7 +63,7 @@ __nscd_getai (const char *key, struct nscd_ai_result **result, int *h_errnop)
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 (GETAI, key, keylen,
mapped);
Expand All @@ -86,7 +86,7 @@ __nscd_getai (const char *key, struct nscd_ai_result **result, int *h_errnop)
{
/* nscd not running or wrong version or hosts caching disabled. */
__nss_not_use_nscd_hosts = 1;
goto out;;
goto out;
}

ai_resp = &ai_resp_mem;
Expand Down

0 comments on commit 8117719

Please sign in to comment.