[6.0] 1e8215ca2 Flexelint constification

Reza Naghibi reza at naghibi.com
Wed Aug 19 13:17:06 UTC 2020


commit 1e8215ca2fdd3e8ae745805f5a4d6a6128eb6d68
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Feb 25 22:06:55 2019 +0000

    Flexelint constification

diff --git a/lib/libvmod_directors/shard_dir.c b/lib/libvmod_directors/shard_dir.c
index d17cb6e4c..c9b38ee43 100644
--- a/lib/libvmod_directors/shard_dir.c
+++ b/lib/libvmod_directors/shard_dir.c
@@ -337,7 +337,7 @@ sharddir_any_healthy(struct sharddir *shardd, const struct busyobj *bo,
  */
 
 static VCL_BACKEND
-sharddir_pick_be_locked(VRT_CTX, struct sharddir *shardd,
+sharddir_pick_be_locked(VRT_CTX, const struct sharddir *shardd,
     uint32_t key, VCL_INT alt, VCL_REAL warmup, VCL_BOOL rampup,
     enum healthy_e healthy, struct shard_state *state)
 {


More information about the varnish-commit mailing list