about summary refs log tree commit diff
path: root/resolv
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-03-08 11:49:43 +0100
committerThomas Schwinge <thomas@codesourcery.com>2012-03-08 11:49:43 +0100
commit82d86f28445f3231f7f9e94ac6678065ab476a8e (patch)
treeb2833b3156fb0d99075f8f19e484c98026b341f9 /resolv
parent2edd9a79e5967e01f9afc3ae1207159a2c53c73f (diff)
downloadglibc-82d86f28445f3231f7f9e94ac6678065ab476a8e.tar.gz
glibc-82d86f28445f3231f7f9e94ac6678065ab476a8e.tar.xz
glibc-82d86f28445f3231f7f9e94ac6678065ab476a8e.zip
Fix struct timespec normalization (as used in many other places).
Diffstat (limited to 'resolv')
-rw-r--r--resolv/gai_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/resolv/gai_misc.c b/resolv/gai_misc.c
index 33ebd54255..35f1133e69 100644
--- a/resolv/gai_misc.c
+++ b/resolv/gai_misc.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 2001-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2001.
 
@@ -364,7 +364,7 @@ handle_requests (void *arg)
 	  gettimeofday (&now, NULL);
 	  wakeup_time.tv_sec = now.tv_sec + optim.gai_idle_time;
 	  wakeup_time.tv_nsec = now.tv_usec * 1000;
-	  if (wakeup_time.tv_nsec > 1000000000)
+	  if (wakeup_time.tv_nsec >= 1000000000)
 	    {
 	      wakeup_time.tv_nsec -= 1000000000;
 	      ++wakeup_time.tv_sec;