diff --git a/main.c b/main.c index caa225f..461456c 100644 --- a/main.c +++ b/main.c @@ -32,7 +32,7 @@ void getutmp( int pid, char user[], char host_ip[], time_t * time ) { sprintf(user, "%s", utmp->ut_user); sprintf(host_ip, "%s", utmp->ut_host); - *time = utmp->ut_tv.tv_sec; + *time = (time_t) utmp->ut_tv.tv_sec; break; } }