secstore/secuser: use ulong for time
This commit is contained in:
parent
2aa42aee31
commit
8ea917d119
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ main(int argc, char **argv)
|
||||||
int isnew;
|
int isnew;
|
||||||
char *id, buf[Maxmsg], home[Maxmsg], prompt[100], *hexHi;
|
char *id, buf[Maxmsg], home[Maxmsg], prompt[100], *hexHi;
|
||||||
char *pass, *passck;
|
char *pass, *passck;
|
||||||
long expsecs;
|
ulong expsecs;
|
||||||
mpint *H = mpnew(0), *Hi = mpnew(0);
|
mpint *H = mpnew(0), *Hi = mpnew(0);
|
||||||
PW *pw;
|
PW *pw;
|
||||||
Tm *tm;
|
Tm *tm;
|
||||||
|
@ -109,7 +109,7 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
/* get expiration time (midnight of date specified) */
|
/* get expiration time (midnight of date specified) */
|
||||||
if(isnew)
|
if(isnew)
|
||||||
expsecs = time(0) + 365*24*60*60;
|
expsecs = (ulong)time(0) + 365*24*60*60;
|
||||||
else
|
else
|
||||||
expsecs = pw->expire;
|
expsecs = pw->expire;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue