From 8ea917d119179cc4e712f29815b535e06d14599d Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 26 Jan 2017 22:06:57 +0100 Subject: [PATCH] secstore/secuser: use ulong for time --- sys/src/cmd/auth/secstore/secuser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/src/cmd/auth/secstore/secuser.c b/sys/src/cmd/auth/secstore/secuser.c index 2a1700e0f..dc780cfec 100644 --- a/sys/src/cmd/auth/secstore/secuser.c +++ b/sys/src/cmd/auth/secstore/secuser.c @@ -32,7 +32,7 @@ main(int argc, char **argv) int isnew; char *id, buf[Maxmsg], home[Maxmsg], prompt[100], *hexHi; char *pass, *passck; - long expsecs; + ulong expsecs; mpint *H = mpnew(0), *Hi = mpnew(0); PW *pw; Tm *tm; @@ -109,7 +109,7 @@ main(int argc, char **argv) /* get expiration time (midnight of date specified) */ if(isnew) - expsecs = time(0) + 365*24*60*60; + expsecs = (ulong)time(0) + 365*24*60*60; else expsecs = pw->expire;