--- a/src/login.c
+++ b/src/login.c
@@ -281,7 +281,7 @@
 	/* only correct for ptys named /dev/tty[pqr][0-9a-z] */
 	strcpy(entry->ut_id, ttyname(STDIN_FILENO) + strlen("/dev/tty"));
 
-	time((long int *) &entry->ut_time);
+	time((time_t *) &entry->ut_time);
 
 	strncpy(entry->ut_user, username, UT_NAMESIZE);
 	memset(entry->ut_host, 0, UT_HOSTSIZE);
