git: 9front

Download patch

ref: 5dcedbe794b278a129035f04df63426bef424a51
parent: dabb2f4d628393288766c9a150dadbcddcdafa6e
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Jan 26 17:06:57 EST 2017

secstore/secuser: use ulong for time

--- a/sys/src/cmd/auth/secstore/secuser.c
+++ b/sys/src/cmd/auth/secstore/secuser.c
@@ -32,7 +32,7 @@
 	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 @@
 
 	/* 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;
 
--