WARNS=4
This commit is contained in:
parent
9132e9e090
commit
0d3ed1b0bc
|
@ -0,0 +1,5 @@
|
|||
# $NetBSD: Makefile,v 1.1 2009/05/08 17:43:54 christos Exp $
|
||||
|
||||
SUBDIR= lib .WAIT bin
|
||||
|
||||
.include <bsd.subdir.mk>
|
|
@ -1,6 +1,7 @@
|
|||
# $NetBSD: Makefile.inc,v 1.1 2009/05/08 17:28:01 christos Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.2 2009/05/08 17:43:54 christos Exp $
|
||||
|
||||
DIST=${.CURDIR}/../dist
|
||||
WARNS=4
|
||||
|
||||
USE_FORT?= yes # data-driven bugs?
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cdf.c,v 1.2 2009/05/08 17:28:01 christos Exp $ */
|
||||
/* $NetBSD: cdf.c,v 1.3 2009/05/08 17:43:54 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2008 Christos Zoulas
|
||||
|
@ -37,7 +37,7 @@
|
|||
#if 0
|
||||
FILE_RCSID("@(#)$File: cdf.c,v 1.30 2009/05/06 14:29:47 christos Exp $")
|
||||
#else
|
||||
__RCSID("$NetBSD: cdf.c,v 1.2 2009/05/08 17:28:01 christos Exp $");
|
||||
__RCSID("$NetBSD: cdf.c,v 1.3 2009/05/08 17:43:54 christos Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -949,18 +949,18 @@ cdf_print_elapsed_time(char *buf, size_t bufsiz, cdf_timestamp_t ts)
|
|||
|
||||
if (days) {
|
||||
len += snprintf(buf + len, bufsiz - len, "%dd+", days);
|
||||
if (len >= bufsiz)
|
||||
if ((size_t)len >= bufsiz)
|
||||
return len;
|
||||
}
|
||||
|
||||
if (days || hours) {
|
||||
len += snprintf(buf + len, bufsiz - len, "%.2d:", hours);
|
||||
if (len >= bufsiz)
|
||||
if ((size_t)len >= bufsiz)
|
||||
return len;
|
||||
}
|
||||
|
||||
len += snprintf(buf + len, bufsiz - len, "%.2d:", mins);
|
||||
if (len >= bufsiz)
|
||||
if ((size_t)len >= bufsiz)
|
||||
return len;
|
||||
|
||||
len += snprintf(buf + len, bufsiz - len, "%.2d", secs);
|
||||
|
|
Loading…
Reference in New Issue