about summary refs log tree commit diff
path: root/sysdeps/pthread/aio_suspend.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-06-24 17:43:32 -0700
committerRoland McGrath <roland@hack.frob.com>2015-06-24 17:43:32 -0700
commit86edd44f04891c0bd0fd347cba4bfc2a13d94377 (patch)
tree257717a820105a3e3543328afbf12ea5f1f529e0 /sysdeps/pthread/aio_suspend.c
parenta7fcc2f8edb26e4d54b6a740aaa3f3bb0caebd14 (diff)
downloadglibc-86edd44f04891c0bd0fd347cba4bfc2a13d94377.tar.gz
glibc-86edd44f04891c0bd0fd347cba4bfc2a13d94377.tar.xz
glibc-86edd44f04891c0bd0fd347cba4bfc2a13d94377.zip
Use unsigned types for counters in AIO code.
Diffstat (limited to 'sysdeps/pthread/aio_suspend.c')
-rw-r--r--sysdeps/pthread/aio_suspend.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sysdeps/pthread/aio_suspend.c b/sysdeps/pthread/aio_suspend.c
index 920f18a414..641eafb1bd 100644
--- a/sysdeps/pthread/aio_suspend.c
+++ b/sysdeps/pthread/aio_suspend.c
@@ -94,13 +94,13 @@ cleanup (void *arg)
 #ifdef DONT_NEED_AIO_MISC_COND
 static int
 __attribute__ ((noinline))
-do_aio_misc_wait(int *cntr, const struct timespec *timeout)
+do_aio_misc_wait (unsigned int *cntr, const struct timespec *timeout)
 {
-	int result = 0;
+  int result = 0;
 
-	AIO_MISC_WAIT(result, *cntr, timeout, 1);
+  AIO_MISC_WAIT (result, *cntr, timeout, 1);
 
-	return result;
+  return result;
 }
 #endif
 
@@ -124,7 +124,7 @@ aio_suspend (list, nent, timeout)
   int cnt;
   bool any = false;
   int result = 0;
-  int cntr = 1;
+  unsigned int cntr = 1;
 
   /* Request the mutex.  */
   pthread_mutex_lock (&__aio_requests_mutex);
@@ -180,7 +180,7 @@ aio_suspend (list, nent, timeout)
       pthread_cleanup_push (cleanup, &clparam);
 
 #ifdef DONT_NEED_AIO_MISC_COND
-      result = do_aio_misc_wait(&cntr, timeout);
+      result = do_aio_misc_wait (&cntr, timeout);
 #else
       if (timeout == NULL)
 	result = pthread_cond_wait (&cond, &__aio_requests_mutex);