Mailing List Archive

[master] 94c4b10d9 Flexelinting: Use 'rr' instead of 'random' which overloads random(3)
commit 94c4b10d9c3823bfd8b197cba4ad57638aa1c80a
Author: Poul-Henning Kamp <phk@FreeBSD.org>
Date: Mon Mar 6 21:04:15 2023 +0000

Flexelinting: Use 'rr' instead of 'random' which overloads random(3)

diff --git a/vmod/vmod_directors_random.c b/vmod/vmod_directors_random.c
index 3d430609e..41868b9bb 100644
--- a/vmod/vmod_directors_random.c
+++ b/vmod/vmod_directors_random.c
@@ -89,11 +89,11 @@ vmod_random_resolve(VRT_CTX, VCL_BACKEND dir)
static void v_matchproto_(vdi_release_f)
vmod_random_release(VCL_BACKEND dir)
{
- struct vmod_directors_random *random;
+ struct vmod_directors_random *rr;

CHECK_OBJ_NOTNULL(dir, DIRECTOR_MAGIC);
- CAST_OBJ_NOTNULL(random, dir->priv, VMOD_DIRECTORS_RANDOM_MAGIC);
- vdir_release(random->vd);
+ CAST_OBJ_NOTNULL(rr, dir->priv, VMOD_DIRECTORS_RANDOM_MAGIC);
+ vdir_release(rr->vd);
}

static void v_matchproto_(vdi_destroy_f)
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit