diff options
author | kris <kris@FreeBSD.org> | 2000-09-28 02:54:44 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-09-28 02:54:44 +0000 |
commit | af5f84470891b036bc81d844cd55d6f5801fc00b (patch) | |
tree | 33a36e06530a9e0bf2014b102a33a391faecb49f | |
parent | 04e4b06d1c30bb8e2745b21af81279b6781b63f8 (diff) | |
download | FreeBSD-src-af5f84470891b036bc81d844cd55d6f5801fc00b.zip FreeBSD-src-af5f84470891b036bc81d844cd55d6f5801fc00b.tar.gz |
No need to work around SCCS variable expansion any more.
-rw-r--r-- | bin/ps/print.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index 7f7898f..600a639 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -366,13 +366,9 @@ started(k, ve) if (!now) (void)time(&now); if (now - k->ki_u.u_start.tv_sec < 24 * 3600) { - /* I *hate* SCCS... */ - static char fmt[] = __CONCAT("%l:%", "M%p"); - (void)strftime(buf, sizeof(buf) - 1, fmt, tp); + (void)strftime(buf, sizeof(buf) - 1, "%l:%M%p", tp); } else if (now - k->ki_u.u_start.tv_sec < 7 * 86400) { - /* I *hate* SCCS... */ - static char fmt[] = __CONCAT("%a%", "I%p"); - (void)strftime(buf, sizeof(buf) - 1, fmt, tp); + (void)strftime(buf, sizeof(buf) - 1, "%a%I%p", tp); } else (void)strftime(buf, sizeof(buf) - 1, "%e%b%y", tp); (void)printf("%-*s", v->width, buf); |