summaryrefslogtreecommitdiffstats
path: root/support/nfs/rpcmisc.c
diff options
context:
space:
mode:
authorGreg Banks <gnb@melbourne.sgi.com>2006-06-22 18:01:10 +1000
committerGreg Banks <gnb@melbourne.sgi.com>2006-06-22 18:01:10 +1000
commit93608a52655abf5ac23404c4b5cc05fe575a9c04 (patch)
tree5d4debc42ac6667427c5f9f8f6e62a5e74906465 /support/nfs/rpcmisc.c
parenta07343ee0da4f0974a23b673ae1b0d482c7426a1 (diff)
downloadnfs-utils-93608a52655abf5ac23404c4b5cc05fe575a9c04.tar.gz
nfs-utils-93608a52655abf5ac23404c4b5cc05fe575a9c04.tar.xz
nfs-utils-93608a52655abf5ac23404c4b5cc05fe575a9c04.zip
Fix a number of the easier compile warnings: unused variables,
unused labels, constness, signedness.
Diffstat (limited to 'support/nfs/rpcmisc.c')
-rw-r--r--support/nfs/rpcmisc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/support/nfs/rpcmisc.c b/support/nfs/rpcmisc.c
index c7bff40..8c94ad9 100644
--- a/support/nfs/rpcmisc.c
+++ b/support/nfs/rpcmisc.c
@@ -228,10 +228,12 @@ rpc_logcall(struct svc_req *rqstp, char *xname, char *arg)
break;
case AUTH_UNIX: {
struct authunix_parms *unix_cred;
+ time_t time;
struct tm *tm;
unix_cred = (struct authunix_parms *) rqstp->rq_clntcred;
- tm = localtime(&unix_cred->aup_time);
+ time = unix_cred->aup_time;
+ tm = localtime(&time);
snprintf(sp, buflen, "UNIX %d/%d/%d %02d:%02d:%02d %s %d.%d",
tm->tm_year, tm->tm_mon + 1, tm->tm_mday,
tm->tm_hour, tm->tm_min, tm->tm_sec,