diff options
author | charnier <charnier@FreeBSD.org> | 2004-04-04 19:11:01 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2004-04-04 19:11:01 +0000 |
commit | 14b099f23f7d4543c28aa7ad44ff33cdcb0809f3 (patch) | |
tree | 1f39fb427ba6e6ea4beddbfecdb7b60bd84d01c1 /usr.bin/window/lcmd2.c | |
parent | 055112142a5c208865bf61aedc4f9701c31aa900 (diff) | |
download | FreeBSD-src-14b099f23f7d4543c28aa7ad44ff33cdcb0809f3.zip FreeBSD-src-14b099f23f7d4543c28aa7ad44ff33cdcb0809f3.tar.gz |
Add FBSDID. Use %ld to printf(3) a long (even if the number is small).
Diffstat (limited to 'usr.bin/window/lcmd2.c')
-rw-r--r-- | usr.bin/window/lcmd2.c | 9 |
1 files changed, 6 insertions, 3 deletions
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 <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include "defs.h" #include <string.h> /* 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; } |