* nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
authorJakub Jelinek <jakub@redhat.com>
Fri, 2 Feb 2007 14:57:14 +0000 (14:57 +0000)
committerJakub Jelinek <jakub@redhat.com>
Fri, 2 Feb 2007 14:57:14 +0000 (14:57 +0000)
gettimeofday.
2007-02-02  Jakub Jelinek  <jakub@redhat.com>

* nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
gettimeofday.

ChangeLog
nscd/nscd_helper.c

index 7439aa2..a8e4560 100644 (file)
--- 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
index 394b2f8..b94bc02 100644 (file)
@@ -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);
        }