From 9869a3657df9b99aa3227824e47d0a6d2adde7d5 Mon Sep 17 00:00:00 2001 From: Petar Kapris Date: Wed, 25 Nov 2020 17:20:58 +0100 Subject: [PATCH] Remove unnecessary local refernce to time() At the start of the check_idle() function, there is an unnecessary local declaration of time(2), which is already declared at the start of the program. It has been removed. --- timeoutd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timeoutd.c b/timeoutd.c index 6927908..096ec5c 100644 --- a/timeoutd.c +++ b/timeoutd.c @@ -984,7 +984,7 @@ void check_idle() char user[sizeof(utmpp->ut_user)]; char host[sizeof(utmpp->ut_host)]; struct stat status, *pstat; - time_t idle, sesstime, time(); + time_t idle, sesstime; short aktconfigline = -1; /* -1 if user is in config; >0 if he's not in config, * is handled in an other way */ pstat = &status; /* point to status structure */