summaryrefslogtreecommitdiff
path: root/nscd
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 /nscd
parent4a44ce79c6dee9a77207466142a36caa9fa54141 (diff)
downloadglibc-f6bf9e5958a6367ba195154ae07794a032b764a2.tar.gz
* 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.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/nscd_helper.c4
1 files changed, 2 insertions, 2 deletions
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);
}