summaryrefslogtreecommitdiff
path: root/libexec/getty/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/getty/main.c')
-rw-r--r--libexec/getty/main.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libexec/getty/main.c b/libexec/getty/main.c
index b1802cf668c..789376b6397 100644
--- a/libexec/getty/main.c
+++ b/libexec/getty/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.28 2003/07/29 18:39:22 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.29 2008/02/09 10:13:34 mbalmer Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -37,7 +37,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)main.c 8.1 (Berkeley) 6/20/93";*/
-static char rcsid[] = "$OpenBSD: main.c,v 1.28 2003/07/29 18:39:22 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.29 2008/02/09 10:13:34 mbalmer Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -565,11 +565,9 @@ putf(char *cp)
break;
case 'd': {
- static char fmt[] = "%l:% %p on %A, %d %B %Y";
-
- fmt[4] = 'M'; /* I *hate* SCCS... */
(void)time(&t);
- (void)strftime(db, sizeof(db), fmt, localtime(&t));
+ (void)strftime(db, sizeof(db),
+ "%l:%M%p on %A, %d %B %Y", localtime(&t));
xputs(db);
break;
}