diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2008-02-09 10:13:35 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2008-02-09 10:13:35 +0000 |
commit | e5735e95479e8a02896bc562df8d76909711b07c (patch) | |
tree | ff6c12893afec62a59a3191f099395645e9adcda /libexec/getty/main.c | |
parent | 1105530c4c62cfa7d24d134c2ea4e7bb0f51359e (diff) |
Remove an old workaround that was needed in SCCS times (%M% expanding to the
filename).
ok mikeb, millert
Diffstat (limited to 'libexec/getty/main.c')
-rw-r--r-- | libexec/getty/main.c | 10 |
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; } |