From c643be94e22c4fdbfbfa93773f62ddb3d812ec5b Mon Sep 17 00:00:00 2001 From: Jeroen Ruigrok/asmodai Date: Fri, 13 Aug 2004 19:01:18 +0000 Subject: [PATCH] Remove question mark (?) case statement. Change %c strftime() specifier into %s to make sure we don't drop year digits. Submitted by: Liam J. Foy --- usr.sbin/apm/apm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.sbin/apm/apm.c b/usr.sbin/apm/apm.c index 3ca59277da..ed4cc05788 100644 --- a/usr.sbin/apm/apm.c +++ b/usr.sbin/apm/apm.c @@ -13,7 +13,7 @@ * Sep., 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * * $FreeBSD: src/usr.sbin/apm/apm.c,v 1.22.2.6 2003/04/29 08:53:04 maxim Exp $ - * $DragonFly: src/usr.sbin/apm/apm.c,v 1.6 2004/08/13 18:58:55 asmodai Exp $ + * $DragonFly: src/usr.sbin/apm/apm.c,v 1.7 2004/08/13 19:01:18 asmodai Exp $ */ #include @@ -298,7 +298,7 @@ print_all_info(int fd, apm_info_t aip, int bioscall_available) else t = timegm(&tm); tm = *localtime(&t); - strftime(buf, sizeof(buf), "%c", &tm); + strftime(buf, sizeof(buf), "%s", &tm); printf("Resume timer: %s\n", buf); } } @@ -463,7 +463,6 @@ main(int argc, char *argv[]) standby = 1; all_info = 0; break; - case '?': default: usage(); } -- 2.41.0