Commit 0ffb91a2 authored by Nils Goroll's avatar Nils Goroll

rename variable for clarity

parent cf20e04e
...@@ -159,13 +159,13 @@ void ...@@ -159,13 +159,13 @@ void
STV_Config(const char *spec) STV_Config(const char *spec)
{ {
char **av, buf[8]; char **av, buf[8];
const char *name; const char *ident;
struct stevedore *stv; struct stevedore *stv;
const struct stevedore *stv2; const struct stevedore *stv2;
int ac; int ac;
static unsigned seq = 0; static unsigned seq = 0;
av = MGT_NamedArg(spec, &name, "-s"); av = MGT_NamedArg(spec, &ident, "-s");
AN(av); AN(av);
if (av[1] == NULL) if (av[1] == NULL)
...@@ -189,8 +189,8 @@ STV_Config(const char *spec) ...@@ -189,8 +189,8 @@ STV_Config(const char *spec)
*stv = *stv2; *stv = *stv2;
AN(stv->name); AN(stv->name);
if (name) { if (ident) {
stv->ident = name; stv->ident = ident;
} else { } else {
bprintf(buf, "s%u", seq++); bprintf(buf, "s%u", seq++);
stv->ident = strdup(buf); stv->ident = strdup(buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment