Skip to content
Browse files

Fixes for at least one GCC bug

  • Loading branch information...
1 parent cea487b commit 3a73406bbdbc25c4857510f32001bacd1a8ab777 @bsdphk bsdphk committed
View
2 bin/varnishd/cache/cache_acceptor.c
@@ -120,7 +120,7 @@ static unsigned need_test;
*/
static int
-vca_tcp_opt_init()
+vca_tcp_opt_init(void)
{
int n, x;
int one = 1;
View
2 bin/varnishd/cache/cache_vrt_vmod.c
@@ -120,7 +120,7 @@ VRT_Vmod_Init(void **hdl, void *ptr, int len, const char *nm,
if (strcmp(w, VMOD_ABI_Version)) {
VCLI_Out(cli, "Loading VMOD %s from %s:\n", nm, path);
- VCLI_Out(cli, "VMOD ABI (%s)", w);
+ VCLI_Out(cli, "VMOD ABI (%s)", (char*)w);
VCLI_Out(cli, " incompatible with varnish ABI (%s)\n",
VMOD_ABI_Version);
(void)dlclose(v->hdl);
View
2 lib/libvmod_directors/round_robin.c
@@ -134,7 +134,7 @@ vmod_round_robin__fini(struct req *req, struct vmod_directors_round_robin **rrp)
VTAILQ_REMOVE(&rr->listhead, ep, list);
FREE_OBJ(ep);
}
- REPLACE(rr->dir->vcl_name, NULL);
+ free(rr->dir->vcl_name);
FREE_OBJ(rr->dir);
FREE_OBJ(rr);
}

0 comments on commit 3a73406

Please sign in to comment.
Something went wrong with that request. Please try again.