[master] 0710944 Staticize.
Poul-Henning Kamp
phk at FreeBSD.org
Sat May 30 23:22:47 CEST 2015
commit 07109443e31bec07c1bf497b137f7c2bfb35b2c6
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Sat May 30 21:20:18 2015 +0000
Staticize.
diff --git a/bin/varnishd/cache/cache.h b/bin/varnishd/cache/cache.h
index a2d1441..0265717 100644
--- a/bin/varnishd/cache/cache.h
+++ b/bin/varnishd/cache/cache.h
@@ -699,7 +699,6 @@ double BAN_Time(const struct ban *ban);
void VBO_Init(void);
struct busyobj *VBO_GetBusyObj(struct worker *, const struct req *);
void VBO_DerefBusyObj(struct worker *wrk, struct busyobj **busyobj);
-void VBO_Free(struct busyobj **vbo);
void VBO_extend(struct busyobj *, ssize_t);
ssize_t VBO_waitlen(struct worker *, struct busyobj *, ssize_t l);
void VBO_setstate(struct busyobj *bo, enum busyobj_state_e next);
diff --git a/bin/varnishd/cache/cache_busyobj.c b/bin/varnishd/cache/cache_busyobj.c
index 2ac9006..d899378 100644
--- a/bin/varnishd/cache/cache_busyobj.c
+++ b/bin/varnishd/cache/cache_busyobj.c
@@ -73,8 +73,8 @@ vbo_New(void)
return (bo);
}
-void
-VBO_Free(struct busyobj **bop)
+static void
+vbo_Free(struct busyobj **bop)
{
struct busyobj *bo;
@@ -215,7 +215,7 @@ VBO_DerefBusyObj(struct worker *wrk, struct busyobj **pbo)
memset(&bo->refcount, 0,
sizeof *bo - offsetof(struct busyobj, refcount));
- VBO_Free(&bo);
+ vbo_Free(&bo);
}
void
More information about the varnish-commit
mailing list