[master] fd55b85 Polish for flexelint
Poul-Henning Kamp
phk at FreeBSD.org
Fri May 26 23:23:05 CEST 2017
commit fd55b85cdf8d0aa96c4640bb76ad1b00f0c51304
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri May 26 20:30:28 2017 +0000
Polish for flexelint
diff --git a/lib/libvmod_debug/vmod_debug.c b/lib/libvmod_debug/vmod_debug.c
index 65bea1f..d22c1a1 100644
--- a/lib/libvmod_debug/vmod_debug.c
+++ b/lib/libvmod_debug/vmod_debug.c
@@ -552,7 +552,7 @@ vmod_test_probe(VRT_CTX, VCL_PROBE probe, VCL_PROBE same)
VCL_INT
vmod_typesize(VRT_CTX, VCL_STRING s)
{
- int i = 0;
+ size_t i = 0;
const char *p;
(void)ctx;
@@ -570,5 +570,5 @@ vmod_typesize(VRT_CTX, VCL_STRING s)
default: return(-1);
}
}
- return (i);
+ return ((VCL_INT)i);
}
More information about the varnish-commit
mailing list