about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-02-02 14:57:14 +0000
committerJakub Jelinek <jakub@redhat.com>2007-02-02 14:57:14 +0000
commitf6bf9e5958a6367ba195154ae07794a032b764a2 (patch)
tree7bee997587bb4c85acad49cd1bdff8768289b282
parent4a44ce79c6dee9a77207466142a36caa9fa54141 (diff)
downloadglibc-f6bf9e5958a6367ba195154ae07794a032b764a2.tar.gz
glibc-f6bf9e5958a6367ba195154ae07794a032b764a2.tar.xz
glibc-f6bf9e5958a6367ba195154ae07794a032b764a2.zip
* nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
gettimeofday.
2007-02-02  Jakub Jelinek  <jakub@redhat.com>

	* nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
	gettimeofday.
-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);
 	}