[master] 94c4b10d9 Flexelinting: Use 'rr' instead of 'random' which overloads random(3)

Poul-Henning Kamp phk at FreeBSD.org
Mon Mar 6 21:06:07 UTC 2023


commit 94c4b10d9c3823bfd8b197cba4ad57638aa1c80a
Author: Poul-Henning Kamp <phk at 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)


More information about the varnish-commit mailing list