about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--nscd/nscd_helper.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7439aa2a3e..a8e456021c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-02  Jakub Jelinek  <jakub@redhat.com>
+
+	* nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
+	gettimeofday.
+
 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
 
 	* sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
diff --git a/nscd/nscd_helper.c b/nscd/nscd_helper.c
index 394b2f86e6..b94bc02077 100644
--- a/nscd/nscd_helper.c
+++ b/nscd/nscd_helper.c
@@ -147,7 +147,7 @@ open_socket (request_type type, const char *key, size_t keylen)
       int to;
       if (first_try)
 	{
-	  gettimeofday (&tvend, NULL);
+	  (void) __gettimeofday (&tvend, NULL);
 	  tvend.tv_sec += 5;
 	  to = 5 * 1000;
 	  first_try = false;
@@ -155,7 +155,7 @@ open_socket (request_type type, const char *key, size_t keylen)
       else
 	{
 	  struct timeval now;
-	  gettimeofday (&now, NULL);
+	  (void) __gettimeofday (&now, NULL);
 	  to = ((tvend.tv_sec - now.tv_sec) * 1000
 		+ (tvend.tv_usec - now.tv_usec) / 1000);
 	}