Skip to content

Commit

Permalink
Avoid Solaris CC warning about variable hiding.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Nov 26, 2013
1 parent efa6338 commit e60a076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XrdXrootd/XrdXrootdXeq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1517,8 +1517,8 @@ int XrdXrootdProtocol::do_Qconf()
bp += n; bleft -= n;
}
else if (!strcmp("role", val))
{const char *myRole = getenv("XRDROLE");
n = snprintf(bp, bleft, "%s\n", (myRole ? myRole : "none"));
{const char *theRole = getenv("XRDROLE");
n = snprintf(bp, bleft, "%s\n", (theRole ? theRole : "none"));
bp += n; bleft -= n;
}
else if (!strcmp("sitename", val))
Expand Down

0 comments on commit e60a076

Please sign in to comment.