[master] 0ffb91a rename variable for clarity

Nils Goroll nils.goroll at uplex.de
Sat May 5 08:26:22 UTC 2018


commit 0ffb91a2d4ff24ecb1b44933ce280f3034a59d85
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Sat May 5 10:22:01 2018 +0200

    rename variable for clarity

diff --git a/bin/varnishd/storage/mgt_stevedore.c b/bin/varnishd/storage/mgt_stevedore.c
index 32779a9..3f66c3a 100644
--- a/bin/varnishd/storage/mgt_stevedore.c
+++ b/bin/varnishd/storage/mgt_stevedore.c
@@ -159,13 +159,13 @@ void
 STV_Config(const char *spec)
 {
 	char **av, buf[8];
-	const char *name;
+	const char *ident;
 	struct stevedore *stv;
 	const struct stevedore *stv2;
 	int ac;
 	static unsigned seq = 0;
 
-	av = MGT_NamedArg(spec, &name, "-s");
+	av = MGT_NamedArg(spec, &ident, "-s");
 	AN(av);
 
 	if (av[1] == NULL)
@@ -189,8 +189,8 @@ STV_Config(const char *spec)
 	*stv = *stv2;
 	AN(stv->name);
 
-	if (name) {
-		stv->ident = name;
+	if (ident) {
+		stv->ident = ident;
 	} else {
 		bprintf(buf, "s%u", seq++);
 		stv->ident = strdup(buf);


More information about the varnish-commit mailing list