]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - resolv/getaddrinfo_a.c
iconv, localedef: avoid floating point rounding differences [BZ #24372]
[thirdparty/glibc.git] / resolv / getaddrinfo_a.c
index f1070d61e4ba6672c5ecd6ee02fb98ce0ad579e3..a99e9e72b434778af606ee54eecc59f3f0bc218c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001, 2006, 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2001-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2001.
 
@@ -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.  */