diff options
author | Rob Landley <rob@landley.net> | 2020-04-16 00:05:44 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-04-16 00:05:44 -0500 |
commit | d14d54859d5fa3716c96c86d1a1e8a1bacb1dbd8 (patch) | |
tree | 4cee19b8be80339a958de746da4db2fb85f4f290 /toys/pending/telnetd.c | |
parent | e605a828b84aebc5506c63508ccacdc904bab5ec (diff) | |
download | toybox-d14d54859d5fa3716c96c86d1a1e8a1bacb1dbd8.tar.gz |
Weed-whack a few warnings out of pending so allyesconfig is less noisy.
Diffstat (limited to 'toys/pending/telnetd.c')
-rw-r--r-- | toys/pending/telnetd.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |