diff options
| author | Greg Lehey <grog@FreeBSD.org> | 2012-11-08 23:45:19 +0000 |
|---|---|---|
| committer | Greg Lehey <grog@FreeBSD.org> | 2012-11-08 23:45:19 +0000 |
| commit | dfd91f79a34a3e1b51fa5ec7233fb9c99efd69bf (patch) | |
| tree | f7685da3d8aebfc5f5dbcbb449d3cc1281e3b0d5 /bin/ls/print.c | |
| parent | 56eaeab4999ae23b7791c375b962816e033f10a9 (diff) | |
Notes
Diffstat (limited to 'bin/ls/print.c')
| -rw-r--r-- | bin/ls/print.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ls/print.c b/bin/ls/print.c index 335d0e9d9011..89faf6c64917 100644 --- a/bin/ls/print.c +++ b/bin/ls/print.c @@ -160,7 +160,7 @@ printlong(const DISPLAY *dp) strmode(sp->st_mode, buf); aclmode(buf, p); np = p->fts_pointer; - (void)printf("%s %*u %-*s %-*s ", buf, dp->s_nlink, + (void)printf("%s %*u %-*s %-*s ", buf, dp->s_nlink, sp->st_nlink, dp->s_user, np->user, dp->s_group, np->group); if (f_flags) @@ -382,7 +382,7 @@ printtime(time_t ftime) format = d_first ? "%e %b %R" : "%b %e %R"; else /* mmm dd yyyy || dd mmm yyyy */ - format = d_first ? "%e %b %Y" : "%b %e %Y"; + format = d_first ? "%e %b %Y" : "%b %e %Y"; strftime(longstring, sizeof(longstring), format, localtime(&ftime)); fputs(longstring, stdout); fputc(' ', stdout); @@ -606,11 +606,11 @@ printsize(size_t width, off_t bytes) humanize_number(buf, sizeof(buf), (int64_t)bytes, "", HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL); (void)printf("%*s ", (u_int)width, buf); - } else if (f_thousands) { /* with commas */ + } else if (f_thousands) { /* with commas */ /* This format assignment needed to work round gcc bug. */ - const char *format = "%*j'd "; + const char *format = "%*j'd "; (void)printf(format, (u_int)width, bytes); - } else + } else (void)printf("%*jd ", (u_int)width, bytes); } |
