summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-04-25 11:41:18 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-04-25 11:41:18 (GMT)
commitf023da1e3f9f46142786b95c25ec2e46d0f1b350 (patch)
tree7f4b29d9196e1a4a2b1dbe38e54e37c91f661fe1
parentfa74a2e1e2793c2317878cd814164eef66aca918 (diff)
downloadhdf5-f023da1e3f9f46142786b95c25ec2e46d0f1b350.zip
hdf5-f023da1e3f9f46142786b95c25ec2e46d0f1b350.tar.gz
hdf5-f023da1e3f9f46142786b95c25ec2e46d0f1b350.tar.bz2
[svn-r6750] Purpose:
Code cleanup Description: Christi Forsythe reported that the NGROUPS macro in this file was causing a macro redefinition warning on the QT machine. Solution: Rename NGROUPS to UNLINK_NGROUPS Platforms tested: Eyeballed, too trivial for triple check.
-rw-r--r--test/unlink.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unlink.c b/test/unlink.c
index b6939dc..2820a61 100644
--- a/test/unlink.c
+++ b/test/unlink.c
@@ -36,7 +36,7 @@ const char *FILENAME[] = {
/* Macros for test_create_unlink() & test_filespace */
#define GROUPNAME "group"
#define GROUP2NAME "group2"
-#define NGROUPS 1000
+#define UNLINK_NGROUPS 1000
#define DATASETNAME "dataset"
#define DATASET2NAME "dataset2"
#define ATTRNAME "attribute"
@@ -937,14 +937,14 @@ test_filespace(void)
if ((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl))<0) TEST_ERROR;
/* Create a many groups to remove */
- for(u=0; u<NGROUPS; u++) {
+ for(u=0; u<UNLINK_NGROUPS; u++) {
sprintf(objname,"%s %u",GROUPNAME,u);
if((group = H5Gcreate (file, objname, 0))<0) TEST_ERROR;
if(H5Gclose (group)<0) TEST_ERROR;
} /* end for */
/* Remove the all the groups */
- for(u=0; u<NGROUPS; u++) {
+ for(u=0; u<UNLINK_NGROUPS; u++) {
sprintf(objname,"%s %u",GROUPNAME,u);
if(H5Gunlink (file, objname)<0) TEST_ERROR;
} /* end for */
@@ -1129,7 +1129,7 @@ static int test_create_unlink(const char *msg, hid_t fapl)
}
/* Create a many groups to remove */
- for(u=0; u<NGROUPS; u++) {
+ for(u=0; u<UNLINK_NGROUPS; u++) {
sprintf(groupname,"%s %u",GROUPNAME,u);
if((group = H5Gcreate (file, groupname, 0))<0)
{
@@ -1146,7 +1146,7 @@ static int test_create_unlink(const char *msg, hid_t fapl)
} /* end for */
/* Remove the all the groups */
- for(u=0; u<NGROUPS; u++) {
+ for(u=0; u<UNLINK_NGROUPS; u++) {
sprintf(groupname,"%s %u",GROUPNAME,u);
if(H5Gunlink (file, groupname)<0)
{