[master] 0bda0cb Minor flexelint'ing
Poul-Henning Kamp
phk at varnish-cache.org
Wed Sep 14 09:50:51 CEST 2011
commit 0bda0cb32712fa873d771ffc6f1ed593fd640de6
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Sep 14 07:50:40 2011 +0000
Minor flexelint'ing
diff --git a/bin/varnishtest/flint.lnt b/bin/varnishtest/flint.lnt
index f50040c..8f3d880 100644
--- a/bin/varnishtest/flint.lnt
+++ b/bin/varnishtest/flint.lnt
@@ -22,3 +22,4 @@
-e737 // [45] Loss of sign in promotion from int to unsigned
-e713 // Loss of precision (assignment) (unsigned long long to long long)
-e574 // Signed-unsigned mix with relational
+-e835 // A zero has been given as ___ argument to operator '___' (<<)
diff --git a/bin/varnishtest/vtc.c b/bin/varnishtest/vtc.c
index 5b14edc..a034fef 100644
--- a/bin/varnishtest/vtc.c
+++ b/bin/varnishtest/vtc.c
@@ -60,7 +60,6 @@ volatile sig_atomic_t vtc_error; /* Error encountered */
int vtc_stop; /* Stops current test without error */
pthread_t vtc_thread;
static struct vtclog *vltop;
-int in_tree = 0; /* Are we running in-tree */
/**********************************************************************
* Macro facility
@@ -238,18 +237,6 @@ extmacro_def(const char *name, const char *fmt, ...)
}
}
-const char *
-extmacro_get(const char *name)
-{
- struct extmacro *m;
-
- VTAILQ_FOREACH(m, &extmacro_list, list)
- if (!strcmp(name, m->name))
- return (m->val);
-
- return (NULL);
-}
-
/**********************************************************************
* Execute a file
*/
diff --git a/bin/varnishtest/vtc.h b/bin/varnishtest/vtc.h
index 16d577f..eb9a02a 100644
--- a/bin/varnishtest/vtc.h
+++ b/bin/varnishtest/vtc.h
@@ -85,4 +85,3 @@ void macro_def(struct vtclog *vl, const char *instance, const char *name,
struct vsb *macro_expand(struct vtclog *vl, const char *text);
void extmacro_def(const char *name, const char *fmt, ...);
-const char *extmacro_get(const char *name);
diff --git a/bin/varnishtest/vtc_http.c b/bin/varnishtest/vtc_http.c
index 758113b..9c0f175 100644
--- a/bin/varnishtest/vtc_http.c
+++ b/bin/varnishtest/vtc_http.c
@@ -586,7 +586,7 @@ cmd_http_gunzip_body(CMD_ARGS)
*/
static void
-gzip_body(struct http *hp, const char *txt, char **body, int *bodylen)
+gzip_body(const struct http *hp, const char *txt, char **body, int *bodylen)
{
int l, i;
z_stream vz;
More information about the varnish-commit
mailing list