summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/w/pr_time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/w/pr_time.c b/usr.bin/w/pr_time.c
index 30afc10..5f77cf6 100644
--- a/usr.bin/w/pr_time.c
+++ b/usr.bin/w/pr_time.c
@@ -74,12 +74,12 @@ pr_attime(started, now)
tm.tm_year != tp.tm_year) {
/* The line below does not take DST into consideration */
/* else if (*now / 86400 != *started / 86400) { */
- (void)strcpy(fmt, use_ampm ? "%a%I%p" : "%a%H ");
+ (void)strcpy(fmt, use_ampm ? "%a%I%p" : "%a%H ");
}
/* Default is hh:mm{am,pm}. */
else {
- (void)strcpy(fmt, use_ampm ? "%l:%M%p" : "%k:%M ");
+ (void)strcpy(fmt, use_ampm ? "%l:%M%p" : "%k:%M ");
}
(void)strftime(buf, sizeof(buf) - 1, fmt, &tp);
OpenPOWER on IntegriCloud