Code cleanup
This commit is contained in:
parent
393ef41b69
commit
e7b557a157
|
@ -42,8 +42,9 @@ static int _who(Prefs * prefs)
|
|||
printf(" %c", '?');
|
||||
printf(" %-8s", u->ut_line);
|
||||
t = u->ut_tv.tv_sec;
|
||||
if((tm = localtime(&t)) == NULL || strftime(buf, sizeof(buf),
|
||||
"%b %e %H:%M", tm) == 0)
|
||||
if((tm = localtime(&t)) == NULL
|
||||
|| strftime(buf, sizeof(buf), "%b %e %H:%M", tm)
|
||||
== 0)
|
||||
strcpy(buf, "n/a");
|
||||
printf(" %s\n", buf);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user