From 3dc9f1d0fe7737dcb164b986e74af7c8d7192be9 Mon Sep 17 00:00:00 2001 From: Fons Rademakers <Fons.Rademakers@cern.ch> Date: Wed, 7 May 2008 14:10:06 +0000 Subject: [PATCH] remove shadow warnings. git-svn-id: http://root.cern.ch/svn/root/trunk@23679 27541ba8-7e3a-0410-8455-c3a389f83636 --- core/clib/src/Demangle.c | 2 +- net/rootd/src/rootd.cxx | 31 +++++++++++++++---------------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/core/clib/src/Demangle.c b/core/clib/src/Demangle.c index ad864f3f27f..e02cdaff6e7 100644 --- a/core/clib/src/Demangle.c +++ b/core/clib/src/Demangle.c @@ -2526,7 +2526,7 @@ demangle_function_name (work, mangled, declp, scan) { for (i = 0; i < (int)(sizeof (optable) / sizeof (optable[0])); i++) { - int len = declp->p - declp->b - 3; + len = declp->p - declp->b - 3; if ((int)strlen(optable[i].in) == len && memcmp (optable[i].in, declp->b + 3, len) == 0) { diff --git a/net/rootd/src/rootd.cxx b/net/rootd/src/rootd.cxx index cc31edde654..e01a6c07094 100644 --- a/net/rootd/src/rootd.cxx +++ b/net/rootd/src/rootd.cxx @@ -2553,9 +2553,9 @@ int main(int argc, char **argv) rootbindir = std::string(confdir).append("/bin"); // Make it available to all the session via env if (rootbindir.length()) { - char *tmp = new char[15 + rootbindir.length()]; - sprintf(tmp, "ROOTBINDIR=%s", rootbindir.c_str()); - putenv(tmp); + char *tmp1 = new char[15 + rootbindir.length()]; + sprintf(tmp1, "ROOTBINDIR=%s", rootbindir.c_str()); + putenv(tmp1); } // Define rootetcdir if not done already @@ -2563,29 +2563,29 @@ int main(int argc, char **argv) rootetcdir = std::string(confdir).append("/etc"); // Make it available to all the session via env if (rootetcdir.length()) { - char *tmp = new char[15 + rootetcdir.length()]; - sprintf(tmp, "ROOTETCDIR=%s", rootetcdir.c_str()); - putenv(tmp); + char *tmp1 = new char[15 + rootetcdir.length()]; + sprintf(tmp1, "ROOTETCDIR=%s", rootetcdir.c_str()); + putenv(tmp1); } // If specified, set the special daemonrc file to be used if (daemonrc.length()) { - char *tmp = new char[15+daemonrc.length()]; - sprintf(tmp, "ROOTDAEMONRC=%s", daemonrc.c_str()); - putenv(tmp); + char *tmp1 = new char[15+daemonrc.length()]; + sprintf(tmp1, "ROOTDAEMONRC=%s", daemonrc.c_str()); + putenv(tmp1); } #ifdef R__GLBS // If specified, set the special gridmap file to be used if (gridmap.length()) { - char *tmp = new char[15+gridmap.length()]; - sprintf(tmp, "GRIDMAP=%s", gridmap.c_str()); - putenv(tmp); + char *tmp1 = new char[15+gridmap.length()]; + sprintf(tmp1, "GRIDMAP=%s", gridmap.c_str()); + putenv(tmp1); } // If specified, set the special hostcert.conf file to be used if (hostcertconf.length()) { - char *tmp = new char[15+hostcertconf.length()]; - sprintf(tmp, "ROOTHOSTCERT=%s", hostcertconf.c_str()); - putenv(tmp); + char *tmp1 = new char[15+hostcertconf.length()]; + sprintf(tmp1, "ROOTHOSTCERT=%s", hostcertconf.c_str()); + putenv(tmp1); } #endif @@ -2662,4 +2662,3 @@ int main(int argc, char **argv) } } - -- GitLab