about summary refs log tree commit diff
path: root/nptl/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-09-05 15:33:13 +0000
committerUlrich Drepper <drepper@redhat.com>2006-09-05 15:33:13 +0000
commitd052233c6cc886f472736f3cd8f79e4ecf6e0c89 (patch)
tree8793c026c6c59e51343847d01a59fc947eed2269 /nptl/sysdeps
parentcd248c3f0dff50ed7a9421fa3b152401050e6a6c (diff)
downloadglibc-d052233c6cc886f472736f3cd8f79e4ecf6e0c89.tar.gz
glibc-d052233c6cc886f472736f3cd8f79e4ecf6e0c89.tar.xz
glibc-d052233c6cc886f472736f3cd8f79e4ecf6e0c89.zip
* nscd/initgrcache.c (addinitgroupsX): Move any_success
	decl before first goto out.
Diffstat (limited to 'nptl/sysdeps')
-rw-r--r--nptl/sysdeps/pthread/aio_misc.h2
-rw-r--r--nptl/sysdeps/pthread/gai_misc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/nptl/sysdeps/pthread/aio_misc.h b/nptl/sysdeps/pthread/aio_misc.h
index f285083883..c5a11f4550 100644
--- a/nptl/sysdeps/pthread/aio_misc.h
+++ b/nptl/sysdeps/pthread/aio_misc.h
@@ -29,7 +29,7 @@
 
 #define AIO_MISC_NOTIFY(waitlist) \
   do {									      \
-    if (--*waitlist->counterp == 0)					      \
+    if (*waitlist->counterp > 0 && --*waitlist->counterp == 0)		      \
       lll_futex_wake (waitlist->counterp, 1);				      \
   } while (0)
 
diff --git a/nptl/sysdeps/pthread/gai_misc.h b/nptl/sysdeps/pthread/gai_misc.h
index 1dc351a2de..9f6a73dad1 100644
--- a/nptl/sysdeps/pthread/gai_misc.h
+++ b/nptl/sysdeps/pthread/gai_misc.h
@@ -30,7 +30,7 @@
 
 #define GAI_MISC_NOTIFY(waitlist) \
   do {									      \
-    if (--*waitlist->counterp == 0)					      \
+    if (*waitlist->counterp > 0 && --*waitlist->counterp == 0)		      \
       lll_futex_wake (waitlist->counterp, 1);				      \
   } while (0)