Skip to content

Commit

Permalink
* nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
Browse files Browse the repository at this point in the history
gettimeofday.
2007-02-02  Jakub Jelinek  <jakub@redhat.com>

	* nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
	gettimeofday.
  • Loading branch information
Jakub Jelinek committed Feb 2, 2007
1 parent 4a44ce7 commit f6bf9e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions nscd/nscd_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ 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;
}
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);
}
Expand Down

0 comments on commit f6bf9e5

Please sign in to comment.