diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2004-01-23 03:34:31 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2004-01-23 03:34:31 (GMT) |
commit | 36ad158dd24cea007575246ee86a24e8994dcf41 (patch) | |
tree | 062e071eadb9034a3f47112e6b961e28d89ade53 /test | |
parent | c0c69d1a17bec0ed02a47e9e174ec81b7000c7f1 (diff) | |
download | hdf5-36ad158dd24cea007575246ee86a24e8994dcf41.zip hdf5-36ad158dd24cea007575246ee86a24e8994dcf41.tar.gz hdf5-36ad158dd24cea007575246ee86a24e8994dcf41.tar.bz2 |
[svn-r8098] 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.c | 10 | ||||
-rw-r--r-- | test/testhdf5.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/testframe.c b/test/testframe.c index 31bb4a1..569695c 100644 --- a/test/testframe.c +++ b/test/testframe.c @@ -306,13 +306,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 74465b1..15006b3 100644 --- a/test/testhdf5.h +++ b/test/testhdf5.h @@ -118,7 +118,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, ...); |