[master] be1b87b Minor constification
Poul-Henning Kamp
phk at FreeBSD.org
Thu Sep 14 16:14:05 UTC 2017
commit be1b87bcdfea76eb18a04bb12b527e80cd8e2fe3
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Sep 14 16:13:32 2017 +0000
Minor constification
diff --git a/bin/varnishd/cache/cache_vrt_priv.c b/bin/varnishd/cache/cache_vrt_priv.c
index baafa66..000d505 100644
--- a/bin/varnishd/cache/cache_vrt_priv.c
+++ b/bin/varnishd/cache/cache_vrt_priv.c
@@ -150,7 +150,7 @@ VRTPRIV_dynamic_kill(struct vrt_privs *privs, uintptr_t id)
}
struct vmod_priv *
-VRT_priv_task(VRT_CTX, void *vmod_id)
+VRT_priv_task(VRT_CTX, const void *vmod_id)
{
uintptr_t id;
@@ -169,7 +169,7 @@ VRT_priv_task(VRT_CTX, void *vmod_id)
}
struct vmod_priv *
-VRT_priv_top(VRT_CTX, void *vmod_id)
+VRT_priv_top(VRT_CTX, const void *vmod_id)
{
uintptr_t id;
diff --git a/include/vrt.h b/include/vrt.h
index 9f1ad5e..3d59bfe 100644
--- a/include/vrt.h
+++ b/include/vrt.h
@@ -358,8 +358,8 @@ struct vclref * VRT_ref_vcl(VRT_CTX, const char *);
void VRT_rel_vcl(VRT_CTX, struct vclref **);
void VRT_priv_fini(const struct vmod_priv *p);
-struct vmod_priv *VRT_priv_task(VRT_CTX, void *vmod_id);
-struct vmod_priv *VRT_priv_top(VRT_CTX, void *vmod_id);
+struct vmod_priv *VRT_priv_task(VRT_CTX, const void *vmod_id);
+struct vmod_priv *VRT_priv_top(VRT_CTX, const void *vmod_id);
/* Stevedore related functions */
int VRT_Stv(const char *nm);
More information about the varnish-commit
mailing list