]> err.no Git - varnish/commitdiff
Make Flexelint happier about our private ctype.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 16 Jan 2008 11:39:06 +0000 (11:39 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 16 Jan 2008 11:39:06 +0000 (11:39 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2349 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_http.c

index 256966c39ba92324b2e5436ee00118a2db86ad44..9684bcee33746cbec6d4d04ca8708a4134fa6ec0 100644 (file)
@@ -64,7 +64,12 @@ static unsigned char vctyptab[256] = {
        [' ']   =       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