From 7766efa6a34a87f228418cda746c5a52fe21e31b Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 16 Jan 2008 11:39:06 +0000 Subject: [PATCH] Make Flexelint happier about our private ctype. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2349 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_http.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.5