From 14b099f23f7d4543c28aa7ad44ff33cdcb0809f3 Mon Sep 17 00:00:00 2001 From: charnier Date: Sun, 4 Apr 2004 19:11:01 +0000 Subject: Add FBSDID. Use %ld to printf(3) a long (even if the number is small). --- usr.bin/window/lcmd2.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'usr.bin/window') diff --git a/usr.bin/window/lcmd2.c b/usr.bin/window/lcmd2.c index c9eaa24..a9972a9 100644 --- a/usr.bin/window/lcmd2.c +++ b/usr.bin/window/lcmd2.c @@ -34,11 +34,14 @@ * SUCH DAMAGE. */ +#if 0 #ifndef lint static char sccsid[] = "@(#)lcmd2.c 8.1 (Berkeley) 6/6/93"; -static char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#endif + +#include +__FBSDID("$FreeBSD$"); #include "defs.h" #include /* System string definitions. */ @@ -175,7 +178,7 @@ register struct timeval *t; t->tv_sec %= 60; fill++; } - (void) sprintf(p, fill ? "%02ld.%02d" : "%ld.%02ld", + (void) sprintf(p, fill ? "%02ld.%02ld" : "%ld.%02ld", t->tv_sec, t->tv_usec / 10000); return buf; } -- cgit v1.1