From: phk Date: Wed, 16 Jan 2008 11:39:06 +0000 (+0000) Subject: Make Flexelint happier about our private ctype. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7766efa6a34a87f228418cda746c5a52fe21e31b;p=varnish Make Flexelint happier about our private ctype. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2349 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_http.c b/varnish-cache/bin/varnishd/cache_http.c index 256966c3..9684bcee 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -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