mirror of
https://sourceware.org/git/glibc.git
synced 2025-10-23 02:12:24 +03:00
* 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:
@@ -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>
|
2007-02-01 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
|
* sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
|
||||||
|
@@ -147,7 +147,7 @@ open_socket (request_type type, const char *key, size_t keylen)
|
|||||||
int to;
|
int to;
|
||||||
if (first_try)
|
if (first_try)
|
||||||
{
|
{
|
||||||
gettimeofday (&tvend, NULL);
|
(void) __gettimeofday (&tvend, NULL);
|
||||||
tvend.tv_sec += 5;
|
tvend.tv_sec += 5;
|
||||||
to = 5 * 1000;
|
to = 5 * 1000;
|
||||||
first_try = false;
|
first_try = false;
|
||||||
@@ -155,7 +155,7 @@ open_socket (request_type type, const char *key, size_t keylen)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
struct timeval now;
|
struct timeval now;
|
||||||
gettimeofday (&now, NULL);
|
(void) __gettimeofday (&now, NULL);
|
||||||
to = ((tvend.tv_sec - now.tv_sec) * 1000
|
to = ((tvend.tv_sec - now.tv_sec) * 1000
|
||||||
+ (tvend.tv_usec - now.tv_usec) / 1000);
|
+ (tvend.tv_usec - now.tv_usec) / 1000);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user