1
0
This commit is contained in:
Daniel Tartavel 2020-05-07 19:09:16 +02:00
parent f8b102ef0c
commit 66a123aa99

2
main.c
View File

@ -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;
}
}