From f6bf9e5958a6367ba195154ae07794a032b764a2 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 2 Feb 2007 14:57:14 +0000 Subject: * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of gettimeofday. 2007-02-02 Jakub Jelinek * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of gettimeofday. --- nscd/nscd_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nscd/nscd_helper.c') diff --git a/nscd/nscd_helper.c b/nscd/nscd_helper.c index 394b2f8..b94bc02 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); } -- cgit v1.1