about summary refs log tree commit diff
path: root/resolv/getaddrinfo_a.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-06-24 17:58:12 -0700
committerRoland McGrath <roland@hack.frob.com>2015-06-24 17:58:12 -0700
commite185d57e9933806ede21294acb2a3283a840b6c7 (patch)
tree5a002fdbee89ed64bb7d3c950d23d02e1ed6099a /resolv/getaddrinfo_a.c
parent86edd44f04891c0bd0fd347cba4bfc2a13d94377 (diff)
downloadglibc-e185d57e9933806ede21294acb2a3283a840b6c7.tar.gz
glibc-e185d57e9933806ede21294acb2a3283a840b6c7.tar.xz
glibc-e185d57e9933806ede21294acb2a3283a840b6c7.zip
Use unsigned types for counters in getaddrinfo_a code.
Diffstat (limited to 'resolv/getaddrinfo_a.c')
-rw-r--r--resolv/getaddrinfo_a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/resolv/getaddrinfo_a.c b/resolv/getaddrinfo_a.c
index b7ae37290b..e6372228c9 100644
--- a/resolv/getaddrinfo_a.c
+++ b/resolv/getaddrinfo_a.c
@@ -28,7 +28,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];
   };
@@ -40,7 +40,7 @@ getaddrinfo_a (int mode, struct gaicb *list[], int ent, struct sigevent *sig)
   struct sigevent defsigev;
   struct requestlist *requests[ent];
   int cnt;
-  volatile int total = 0;
+  volatile unsigned int total = 0;
   int result = 0;
 
   /* Check arguments.  */