r3917 - in trunk/varnish-cache: bin/varnishd lib/libvcl

phk at projects.linpro.no phk at projects.linpro.no
Thu Mar 12 10:03:07 CET 2009


Author: phk
Date: 2009-03-12 10:03:06 +0100 (Thu, 12 Mar 2009)
New Revision: 3917

Modified:
   trunk/varnish-cache/bin/varnishd/cache.h
   trunk/varnish-cache/bin/varnishd/cache_hash.c
   trunk/varnish-cache/bin/varnishd/cache_http.c
   trunk/varnish-cache/bin/varnishd/flint.lnt
   trunk/varnish-cache/bin/varnishd/hash_slinger.h
   trunk/varnish-cache/lib/libvcl/vcc_compile.h
Log:
Flexelint silencing



Modified: trunk/varnish-cache/bin/varnishd/cache.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache.h	2009-03-11 14:54:03 UTC (rev 3916)
+++ trunk/varnish-cache/bin/varnishd/cache.h	2009-03-12 09:03:06 UTC (rev 3917)
@@ -492,7 +492,7 @@
     const char *response);
 void http_FilterFields(struct worker *w, int fd, struct http *to,
     const struct http *fm, unsigned how);
-void http_FilterHeader(struct sess *sp, unsigned how);
+void http_FilterHeader(const struct sess *sp, unsigned how);
 void http_PutProtocol(struct worker *w, int fd, struct http *to,
     const char *protocol);
 void http_PutStatus(struct worker *w, int fd, struct http *to, int status);

Modified: trunk/varnish-cache/bin/varnishd/cache_hash.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_hash.c	2009-03-11 14:54:03 UTC (rev 3916)
+++ trunk/varnish-cache/bin/varnishd/cache_hash.c	2009-03-12 09:03:06 UTC (rev 3917)
@@ -258,7 +258,7 @@
 }
 
 void
-HSH_AfterVclHash(struct sess *sp)
+HSH_AfterVclHash(const struct sess *sp)
 {
 
 	HSH_Prealloc(sp);
@@ -351,7 +351,7 @@
 hsh_testmagic(void *result)
 {
 	int i, j;
-	static int nused;
+	static int nused = 0;
 
 	for (i = 0; i < nused; i++)
 		if (!memcmp(hsh_magiclist[i].was, result, SHA256_LEN))
@@ -374,7 +374,7 @@
 /**********************************************************************/
 
 struct objcore *
-HSH_Insert(struct sess *sp)
+HSH_Insert(const struct sess *sp)
 {
 	struct worker *w;
 	struct objhead *oh;

Modified: trunk/varnish-cache/bin/varnishd/cache_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_http.c	2009-03-11 14:54:03 UTC (rev 3916)
+++ trunk/varnish-cache/bin/varnishd/cache_http.c	2009-03-12 09:03:06 UTC (rev 3917)
@@ -629,7 +629,7 @@
 /*--------------------------------------------------------------------*/
 
 void
-http_FilterHeader(struct sess *sp, unsigned how)
+http_FilterHeader(const struct sess *sp, unsigned how)
 {
 	struct http *hp;
 

Modified: trunk/varnish-cache/bin/varnishd/flint.lnt
===================================================================
--- trunk/varnish-cache/bin/varnishd/flint.lnt	2009-03-11 14:54:03 UTC (rev 3916)
+++ trunk/varnish-cache/bin/varnishd/flint.lnt	2009-03-12 09:03:06 UTC (rev 3917)
@@ -66,6 +66,7 @@
 
 -sem(vsb_new, @p == (1p ? 1p : malloc(1)))
 -sem(vsb_delete, custodial(1))
+-sem(pthread_create, custodial(4))
 -sem(lbv_assert, r_no)
 -sem(lbv_xxxassert, r_no)
 -sem(WS_Init, custodial(2))

Modified: trunk/varnish-cache/bin/varnishd/hash_slinger.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/hash_slinger.h	2009-03-11 14:54:03 UTC (rev 3916)
+++ trunk/varnish-cache/bin/varnishd/hash_slinger.h	2009-03-12 09:03:06 UTC (rev 3917)
@@ -64,9 +64,9 @@
 void HSH_Init(void);
 void HSH_AddString(struct sess *sp, const char *str);
 void HSH_BeforeVclHash(struct sess *sp, unsigned hashcount);
-void HSH_AfterVclHash(struct sess *sp);
+void HSH_AfterVclHash(const struct sess *sp);
 void HSH_DerefObjCore(struct sess *sp);
-struct objcore *HSH_Insert(struct sess *sp);
+struct objcore *HSH_Insert(const struct sess *sp);
 
 #ifdef VARNISH_CACHE_CHILD
 

Modified: trunk/varnish-cache/lib/libvcl/vcc_compile.h
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_compile.h	2009-03-11 14:54:03 UTC (rev 3916)
+++ trunk/varnish-cache/lib/libvcl/vcc_compile.h	2009-03-12 09:03:06 UTC (rev 3917)
@@ -191,7 +191,6 @@
 
 /* vcc_parse.c */
 void vcc_Parse(struct tokenlist *tl);
-void vcc_RateVal(struct tokenlist *tl);
 void vcc_RTimeVal(struct tokenlist *tl);
 void vcc_TimeVal(struct tokenlist *tl);
 void vcc_SizeVal(struct tokenlist *tl);



More information about the varnish-commit mailing list