From 66a123aa994caf6b2a3b7cfe2496e7418186be7f Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Thu, 7 May 2020 19:09:16 +0200 Subject: [PATCH] debug --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }