* 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.
This commit is contained in:
Jakub Jelinek 2007-02-02 14:57:14 +00:00
parent 4a44ce79c6
commit f6bf9e5958
2 changed files with 7 additions and 2 deletions

View File

@ -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

View 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);
}