From 48d84a1bbc72fc52241a7b0cbdd8ac1fb7544d9b Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Fri, 9 Apr 2004 14:42:05 -0500 Subject: [svn-r8334] Purpose: Bug fix Description: Variable name "class" conflicts with C++ key word. Solution: changed it to "type" Platforms tested: RH 8 --- test/th5s.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/th5s.c b/test/th5s.c index 2cdab33..b5038fa 100644 --- a/test/th5s.c +++ b/test/th5s.c @@ -209,7 +209,7 @@ test_h5s_null(void) hid_t attr_sid; /* Dataspace IDs */ hid_t did; /* Dataset ID */ hid_t attr; /*Attribute ID */ - H5S_class_t class; /* dataspace type */ + H5S_class_t stype; /* dataspace type */ herr_t ret; /* Generic return value */ /* Output message about test being performed */ @@ -266,8 +266,8 @@ test_h5s_null(void) CHECK(dset_sid2, FAIL, "H5Scopy"); /* Verify the class type of dataspace */ - class = H5Sget_simple_extent_type(dset_sid2); - VERIFY(class, H5S_NULL, "H5Sget_simple_extent_type"); + stype = H5Sget_simple_extent_type(dset_sid2); + VERIFY(stype, H5S_NULL, "H5Sget_simple_extent_type"); /* Verify there is zero element in the dataspace */ ret = H5Sget_simple_extent_npoints(dset_sid2); @@ -289,8 +289,8 @@ test_h5s_null(void) CHECK(attr_sid, FAIL, "H5Aget_space"); /* Verify the class type of dataspace */ - class = H5Sget_simple_extent_type(attr_sid); - VERIFY(class, H5S_NULL, "H5Sget_simple_extent_type"); + stype = H5Sget_simple_extent_type(attr_sid); + VERIFY(stype, H5S_NULL, "H5Sget_simple_extent_type"); /* Verify there is zero element in the dataspace */ ret = H5Sget_simple_extent_npoints(attr_sid); -- cgit v0.12