summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dumptst.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-06-11 19:53:50 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-06-11 19:53:50 (GMT)
commitc46ac986c51aa94fd42af13da3519f41407f40b1 (patch)
tree518988dd618cea6fa4fa4acd960cb4be3d096432 /tools/h5dump/h5dumptst.c
parentbea931d73cb9db08ac220393c2cb59dd6326a8ef (diff)
downloadhdf5-c46ac986c51aa94fd42af13da3519f41407f40b1.zip
hdf5-c46ac986c51aa94fd42af13da3519f41407f40b1.tar.gz
hdf5-c46ac986c51aa94fd42af13da3519f41407f40b1.tar.bz2
[svn-r3984] Purpose:
Code cleanups Description: Fixed a small number of warnings. Platforms tested: FreeBSD 4.3 (hawkwind)
Diffstat (limited to 'tools/h5dump/h5dumptst.c')
-rw-r--r--tools/h5dump/h5dumptst.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/h5dump/h5dumptst.c b/tools/h5dump/h5dumptst.c
index 01438d7..bdb394b 100644
--- a/tools/h5dump/h5dumptst.c
+++ b/tools/h5dump/h5dumptst.c
@@ -927,7 +927,7 @@ static void test_many(void) {
dset1_t dset1[6];
hsize_t dim[4];
- int index[4] = {0,1,2,3}; /* normal indicies */
+ int idx[4] = {0,1,2,3}; /* normal indicies */
const int perm[4] = {0,1,2,3}; /* the 0'th and the 3'rd indices are permuted */
fid = H5Fcreate(FILE12, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
@@ -1005,20 +1005,20 @@ static void test_many(void) {
for (j=0; j<(int)sdim; j++) {
for (i3 = 0; i3 < 2; i3++) {
- index[perm[3]] = i3;
+ idx[perm[3]] = i3;
for (i2 = 0; i2 < 2; i2++) {
- index[perm[2]] = i2;
+ idx[perm[2]] = i2;
for (i1 = 0; i1 < 2; i1++) {
- index[perm[1]] = i1;
+ idx[perm[1]] = i1;
for (i0 = 0; i0 < 2; i0++) {
- index[perm[0]] = i0;
+ idx[perm[0]] = i0;
- dset1[j].a[index[3]][index[2]][index[1]][index[0]] = i0+j;
- dset1[j].b[index[3]][index[2]][index[1]][index[0]] = (double)(i0+j);
+ dset1[j].a[idx[3]][idx[2]][idx[1]][idx[0]] = i0+j;
+ dset1[j].b[idx[3]][idx[2]][idx[1]][idx[0]] = (double)(i0+j);
#if WIN32
- dset1[j].c[index[3]][index[2]][index[1]][index[0]] = (double)(i0+j+(signed __int64)sdim);
+ dset1[j].c[idx[3]][idx[2]][idx[1]][idx[0]] = (double)(i0+j+(signed __int64)sdim);
#else
- dset1[j].c[index[3]][index[2]][index[1]][index[0]] = (double)(i0+j+sdim);
+ dset1[j].c[idx[3]][idx[2]][idx[1]][idx[0]] = (double)(i0+j+sdim);
#endif
}
}