[master] 84434327f switch to static VRBT functions
Nils Goroll
nils.goroll at uplex.de
Mon Nov 5 17:47:08 UTC 2018
commit 84434327fe2964e0ee054311c38b6aa73b3bd7e8
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Mon Nov 5 18:43:25 2018 +0100
switch to static VRBT functions
This may reduce our binary size.
diff --git a/bin/varnishd/cache/cache_vrt_priv.c b/bin/varnishd/cache/cache_vrt_priv.c
index 531718e1d..0719e203f 100644
--- a/bin/varnishd/cache/cache_vrt_priv.c
+++ b/bin/varnishd/cache/cache_vrt_priv.c
@@ -49,7 +49,7 @@ struct vrt_privs cli_task_privs[1];
static inline int vrt_priv_dyncmp(const struct vrt_priv *,
const struct vrt_priv *);
-VRBT_PROTOTYPE(vrt_priv_tree, vrt_priv, entry, vrt_priv_dyncmp)
+VRBT_PROTOTYPE_STATIC(vrt_priv_tree, vrt_priv, entry, vrt_priv_dyncmp)
/*--------------------------------------------------------------------
*/
@@ -102,7 +102,7 @@ vrt_priv_dyncmp(const struct vrt_priv *vp1, const struct vrt_priv *vp2)
return (0);
}
-VRBT_GENERATE(vrt_priv_tree, vrt_priv, entry, vrt_priv_dyncmp)
+VRBT_GENERATE_STATIC(vrt_priv_tree, vrt_priv, entry, vrt_priv_dyncmp)
static struct vmod_priv *
vrt_priv_dynamic(struct ws *ws, struct vrt_privs *vps, uintptr_t vmod_id)
More information about the varnish-commit
mailing list