diff options
Diffstat (limited to 'sunrpc')
| -rw-r--r-- | sunrpc/auth_des.c | 4 | ||||
| -rw-r--r-- | sunrpc/auth_unix.c | 4 | ||||
| -rw-r--r-- | sunrpc/create_xid.c | 2 | ||||
| -rw-r--r-- | sunrpc/svcauth_des.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/sunrpc/auth_des.c b/sunrpc/auth_des.c index 5b6f985bc2..d36c34006d 100644 --- a/sunrpc/auth_des.c +++ b/sunrpc/auth_des.c @@ -252,7 +252,7 @@ authdes_marshal (AUTH *auth, XDR *xdrs) * Figure out the "time", accounting for any time difference * with the server if necessary. */ - __gettimeofday (&tval, (struct timezone *) NULL); + __gettimeofday (&tval, 0); ad->ad_timestamp.tv_sec = tval.tv_sec + ad->ad_timediff.tv_sec; ad->ad_timestamp.tv_usec = tval.tv_usec + ad->ad_timediff.tv_usec; if (ad->ad_timestamp.tv_usec >= MILLION) @@ -453,7 +453,7 @@ synchronize (struct sockaddr *syncaddr, struct rpc_timeval *timep) if (rtime ((struct sockaddr_in *) syncaddr, timep, &timeout) < 0) return FALSE; - __gettimeofday (&mytime, (struct timezone *) NULL); + __gettimeofday (&mytime, 0); timep->tv_sec -= mytime.tv_sec; if (mytime.tv_usec > timep->tv_usec) { diff --git a/sunrpc/auth_unix.c b/sunrpc/auth_unix.c index b035fdd870..d87e325712 100644 --- a/sunrpc/auth_unix.c +++ b/sunrpc/auth_unix.c @@ -122,7 +122,7 @@ no_memory: /* * fill in param struct from the given params */ - (void) __gettimeofday (&now, (struct timezone *) 0); + (void) __gettimeofday (&now, 0); aup.aup_time = now.tv_sec; aup.aup_machname = machname; aup.aup_uid = uid; @@ -297,7 +297,7 @@ authunix_refresh (AUTH *auth) goto done; /* update the time and serialize in place */ - (void) __gettimeofday (&now, (struct timezone *) 0); + (void) __gettimeofday (&now, 0); aup.aup_time = now.tv_sec; xdrs.x_op = XDR_ENCODE; XDR_SETPOS (&xdrs, 0); diff --git a/sunrpc/create_xid.c b/sunrpc/create_xid.c index a44187f07c..c209cd0b69 100644 --- a/sunrpc/create_xid.c +++ b/sunrpc/create_xid.c @@ -41,7 +41,7 @@ _create_xid (void) { struct timeval now; - __gettimeofday (&now, (struct timezone *) 0); + __gettimeofday (&now, 0); __srand48_r (now.tv_sec ^ now.tv_usec ^ pid, &__rpc_lrand48_data); is_initialized = pid; diff --git a/sunrpc/svcauth_des.c b/sunrpc/svcauth_des.c index c5a512d6f8..a87ae68bcb 100644 --- a/sunrpc/svcauth_des.c +++ b/sunrpc/svcauth_des.c @@ -295,7 +295,7 @@ _svcauth_des (register struct svc_req *rqst, register struct rpc_msg *msg) debug ("timestamp before last seen"); return AUTH_REJECTEDVERF; /* replay */ } - __gettimeofday (¤t, (struct timezone *) NULL); + __gettimeofday (¤t, 0); current.tv_sec -= window; /* allow for expiration */ if (!BEFORE (¤t, ×tamp)) { |
