diff options
author | 2008-02-09 10:13:34 +0000 | |
---|---|---|
committer | 2008-02-09 10:13:34 +0000 | |
commit | f43bdd1fb26da10515dc16b3d60604b76f6cf591 (patch) | |
tree | 4c143410d1165a7cf979dc9d53f8f155f5cd706f | |
parent | missing `)'; (diff) | |
download | wireguard-openbsd-f43bdd1fb26da10515dc16b3d60604b76f6cf591.tar.xz wireguard-openbsd-f43bdd1fb26da10515dc16b3d60604b76f6cf591.zip |
Remove an old workaround that was needed in SCCS times (%M% expanding to the
filename).
ok mikeb, millert
-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; } |