debug
This commit is contained in:
parent
f8b102ef0c
commit
66a123aa99
2
main.c
2
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(user, "%s", utmp->ut_user);
|
||||||
sprintf(host_ip, "%s", utmp->ut_host);
|
sprintf(host_ip, "%s", utmp->ut_host);
|
||||||
*time = utmp->ut_tv.tv_sec;
|
*time = (time_t) utmp->ut_tv.tv_sec;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user