From f8f7b102217864ea382a46bb9ad173b3493e5cae Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Sun, 31 Oct 2004 20:23:09 +0000 Subject: Revert Peter's __lib_gettimeofday patch. There's the minor issue of adding cruft to include/sys/time.h. But also, there's no sense in making changes like this until we decide how we're going to approach the hidden symbol transition. --- libc/inet/rpc/auth_unix.c | 4 ++-- libc/inet/rpc/create_xid.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libc/inet') diff --git a/libc/inet/rpc/auth_unix.c b/libc/inet/rpc/auth_unix.c index 6fe89048b..3e14ba2a5 100644 --- a/libc/inet/rpc/auth_unix.c +++ b/libc/inet/rpc/auth_unix.c @@ -130,7 +130,7 @@ no_memory: /* * fill in param struct from the given params */ - (void) __libc_gettimeofday (&now, (struct timezone *) 0); + (void) gettimeofday (&now, (struct timezone *) 0); aup.aup_time = now.tv_sec; aup.aup_machname = machname; aup.aup_uid = uid; @@ -265,7 +265,7 @@ authunix_refresh (AUTH *auth) goto done; /* update the time and serialize in place */ - (void) __libc_gettimeofday (&now, (struct timezone *) 0); + (void) gettimeofday (&now, (struct timezone *) 0); aup.aup_time = now.tv_sec; xdrs.x_op = XDR_ENCODE; XDR_SETPOS (&xdrs, 0); diff --git a/libc/inet/rpc/create_xid.c b/libc/inet/rpc/create_xid.c index 8d8a34070..cbb961e4d 100644 --- a/libc/inet/rpc/create_xid.c +++ b/libc/inet/rpc/create_xid.c @@ -51,7 +51,7 @@ _create_xid (void) { struct timeval now; - __libc_gettimeofday (&now, (struct timezone *) 0); + gettimeofday (&now, (struct timezone *) 0); srand48_r (now.tv_sec ^ now.tv_usec, &__rpc_lrand48_data); is_initialized = 1; } -- cgit v1.2.3