Remove one space to produce the same output alignment
like in who, rwho, w, etc.
This commit is contained in:
parent
5b3675170f
commit
eb7456fc97
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=20158
@ -203,7 +203,7 @@ wtmp()
|
||||
if (want(bp)) {
|
||||
tm = localtime(&bp->ut_time);
|
||||
(void) strftime(ct, sizeof(ct), "%c", tm);
|
||||
printf("%-*.*s %-*.*s %-*.*s %10.10s %5.5s \n",
|
||||
printf("%-*.*s %-*.*s %-*.*s %10.10s %5.5s \n",
|
||||
UT_NAMESIZE, UT_NAMESIZE,
|
||||
bp->ut_name, UT_LINESIZE,
|
||||
UT_LINESIZE, bp->ut_line,
|
||||
@ -223,7 +223,7 @@ wtmp()
|
||||
if (want(bp)) {
|
||||
tm = localtime(&bp->ut_time);
|
||||
(void) strftime(ct, sizeof(ct), "%c", tm);
|
||||
printf("%-*.*s %-*.*s %-*.*s %10.10s %5.5s \n",
|
||||
printf("%-*.*s %-*.*s %-*.*s %10.10s %5.5s \n",
|
||||
UT_NAMESIZE, UT_NAMESIZE, bp->ut_name,
|
||||
UT_LINESIZE, UT_LINESIZE, bp->ut_line,
|
||||
UT_HOSTSIZE, UT_HOSTSIZE, bp->ut_host,
|
||||
@ -261,7 +261,7 @@ wtmp()
|
||||
bp->ut_line[4] = '\0';
|
||||
tm = localtime(&bp->ut_time);
|
||||
(void) strftime(ct, sizeof(ct), "%c", tm);
|
||||
printf("%-*.*s %-*.*s %-*.*s %10.10s %5.5s ",
|
||||
printf("%-*.*s %-*.*s %-*.*s %10.10s %5.5s ",
|
||||
UT_NAMESIZE, UT_NAMESIZE, bp->ut_name,
|
||||
UT_LINESIZE, UT_LINESIZE, bp->ut_line,
|
||||
UT_HOSTSIZE, UT_HOSTSIZE, bp->ut_host,
|
||||
|
Loading…
Reference in New Issue
Block a user