r2349 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Jan 16 12:39:06 CET 2008


Author: phk
Date: 2008-01-16 12:39:06 +0100 (Wed, 16 Jan 2008)
New Revision: 2349

Modified:
   trunk/varnish-cache/bin/varnishd/cache_http.c
Log:
Make Flexelint happier about our private ctype.


Modified: trunk/varnish-cache/bin/varnishd/cache_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_http.c	2008-01-16 11:34:28 UTC (rev 2348)
+++ trunk/varnish-cache/bin/varnishd/cache_http.c	2008-01-16 11:39:06 UTC (rev 2349)
@@ -64,8 +64,13 @@
 	[' ']	=	C_SP,
 };
 
-#define vctyp(x, y)	(vctyptab[(unsigned)(x) & 0xff] & (y))
+static int
+vctyp(unsigned char x, unsigned char y)
+{
 
+	return (vctyptab[x] & (y));
+}
+
 #define LOGMTX2(ax, bx, cx) 	[bx] = SLT_##ax##cx
 
 #define LOGMTX1(ax) { 		\




More information about the varnish-commit mailing list