From 06d17aff4d4c801653d2af6983fe2ca60c9e1fe9 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 22 Jan 2004 22:33:51 -0500 Subject: [svn-r8097] Purpose: Bug fix Description: C++ compilers do not like the variable name new which is a kind word for C++. Changed it to newval instead. Platforms tested: Tested in Copper which is the one complained about the name. --- test/testframe.c | 10 +++++----- test/testhdf5.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/testframe.c b/test/testframe.c index 8070cf4..e25d3ec 100644 --- a/test/testframe.c +++ b/test/testframe.c @@ -311,13 +311,13 @@ int GetTestVerbosity(void) * Set the verbosity level for the testing framework. * Return previous verbosity level. */ -int SetTestVerbosity(int new) +int SetTestVerbosity(int newval) { - int old; + int oldval; - old = Verbosity; - Verbosity = new; - return(old); + oldval = Verbosity; + Verbosity = newval; + return(oldval); } diff --git a/test/testhdf5.h b/test/testhdf5.h index be6b08a..ad532a9 100644 --- a/test/testhdf5.h +++ b/test/testhdf5.h @@ -187,7 +187,7 @@ H5TEST_DLL void TestSummary(void); H5TEST_DLL void TestCleanup(void); H5TEST_DLL void TestInit(void); H5TEST_DLL int GetTestVerbosity(void); -H5TEST_DLL int SetTestVerbosity(int new); +H5TEST_DLL int SetTestVerbosity(int newval); H5TEST_DLL int GetTestNumErrs(void); H5TEST_DLL int TestErrPrintf(const char *format, ...); -- cgit v0.12