[5.2] 9f31ea0 OCD for PC-Lint-Plus
PÃ¥l Hermunn Johansen
hermunn at varnish-software.com
Fri Sep 15 11:17:30 UTC 2017
commit 9f31ea018c175f74c4dc5a7ea2f59fc8bed86ed8
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Sep 14 16:43:20 2017 +0000
OCD for PC-Lint-Plus
diff --git a/include/vdef.h b/include/vdef.h
index b7fee8b..70f8178 100644
--- a/include/vdef.h
+++ b/include/vdef.h
@@ -40,7 +40,7 @@
do { \
int ibprintf; \
ibprintf = snprintf(buf, sizeof buf, fmt, __VA_ARGS__); \
- assert(ibprintf >= 0 && ibprintf < sizeof buf); \
+ assert(ibprintf >= 0 && ibprintf < (int)sizeof buf); \
} while (0)
/* Safe printf into a fixed-size buffer */
@@ -48,7 +48,7 @@
do { \
int ivbprintf; \
ivbprintf = vsnprintf(buf, sizeof buf, fmt, ap); \
- assert(ivbprintf >= 0 && ivbprintf < sizeof buf); \
+ assert(ivbprintf >= 0 && ivbprintf < (int)sizeof buf); \
} while (0)
/* Close and discard filedescriptor */
More information about the varnish-commit
mailing list