about summary refs log tree commit diff
path: root/sysdeps/pthread/lio_listio.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/lio_listio.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/lio_listio.c')
-rw-r--r--sysdeps/pthread/lio_listio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/pthread/lio_listio.c b/sysdeps/pthread/lio_listio.c
index bfbf2217ed..ac7ce401c7 100644
--- a/sysdeps/pthread/lio_listio.c
+++ b/sysdeps/pthread/lio_listio.c
@@ -35,7 +35,7 @@
 /* We need this special structure to handle asynchronous I/O.  */
 struct async_waitlist
   {
-    int counter;
+    unsigned int counter;
     struct sigevent sigev;
     struct waitlist list[0];
   };
@@ -61,7 +61,7 @@ lio_listio_internal (int mode, struct aiocb *const list[], int nent,
   struct sigevent defsigev;
   struct requestlist *requests[nent];
   int cnt;
-  volatile int total = 0;
+  volatile unsigned int total = 0;
   int result = 0;
 
   if (sig == NULL)
@@ -83,7 +83,7 @@ lio_listio_internal (int mode, struct aiocb *const list[], int nent,
 
 	requests[cnt] = __aio_enqueue_request ((aiocb_union *) list[cnt],
 					       (list[cnt]->aio_lio_opcode
-					        | LIO_OPCODE_BASE));
+						| LIO_OPCODE_BASE));
 
 	if (requests[cnt] != NULL)
 	  /* Successfully enqueued.  */