Code cleanup

This commit is contained in:
Pierre Pronchery 2007-06-02 17:46:26 +00:00
parent 393ef41b69
commit e7b557a157

View File

@ -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);
}