summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorMarc Balmer <mbalmer@cvs.openbsd.org>2008-02-09 10:13:35 +0000
committerMarc Balmer <mbalmer@cvs.openbsd.org>2008-02-09 10:13:35 +0000
commite5735e95479e8a02896bc562df8d76909711b07c (patch)
treeff6c12893afec62a59a3191f099395645e9adcda /libexec
parent1105530c4c62cfa7d24d134c2ea4e7bb0f51359e (diff)
Remove an old workaround that was needed in SCCS times (%M% expanding to the
filename). ok mikeb, millert
Diffstat (limited to 'libexec')
-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;
}