summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-01-23 03:33:51 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-01-23 03:33:51 (GMT)
commit06d17aff4d4c801653d2af6983fe2ca60c9e1fe9 (patch)
tree80533bce9467ea3f225d2bf9cb8c3e0dbfd73a11 /test
parentf3113c02d5df98d554aee9fa23beba9f39ae9e2a (diff)
downloadhdf5-06d17aff4d4c801653d2af6983fe2ca60c9e1fe9.zip
hdf5-06d17aff4d4c801653d2af6983fe2ca60c9e1fe9.tar.gz
hdf5-06d17aff4d4c801653d2af6983fe2ca60c9e1fe9.tar.bz2
[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.
Diffstat (limited to 'test')
-rw-r--r--test/testframe.c10
-rw-r--r--test/testhdf5.h2
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, ...);