Add FBSDID. Use %ld to printf(3) a long (even if the number is small).

This commit is contained in:
charnier 2004-04-04 19:11:01 +00:00
parent 055112142a
commit 14b099f23f

View File

@ -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;
}