From d14d54859d5fa3716c96c86d1a1e8a1bacb1dbd8 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 16 Apr 2020 00:05:44 -0500 Subject: Weed-whack a few warnings out of pending so allyesconfig is less noisy. --- toys/pending/telnetd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toys/pending/telnetd.c') diff --git a/toys/pending/telnetd.c b/toys/pending/telnetd.c index ad39d8c0..bb08e785 100644 --- a/toys/pending/telnetd.c +++ b/toys/pending/telnetd.c @@ -119,9 +119,9 @@ static void utmp_entry(void) setutent(); //start from start while ((utp_ptr = getutent()) != NULL) { if (utp_ptr->ut_pid == pid && utp_ptr->ut_type >= INIT_PROCESS) break; - } + } if (!utp_ptr) entry.ut_type = DEAD_PROCESS; - time(&entry.ut_time); + entry.ut_time = time(0); setutent(); pututline(&entry); } -- cgit v1.2.3