summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2010-05-14 21:09:34 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2010-05-14 21:09:34 (GMT)
commit3b9291b0b1f5e144daf445a39ceea83f4324fc9b (patch)
tree1ad0602e33855effdbd104a635eb7614a4535a99 /tools
parentc4b0bcda1253e44bfbd5a04e07e9b9a54cf88f52 (diff)
downloadhdf5-3b9291b0b1f5e144daf445a39ceea83f4324fc9b.zip
hdf5-3b9291b0b1f5e144daf445a39ceea83f4324fc9b.tar.gz
hdf5-3b9291b0b1f5e144daf445a39ceea83f4324fc9b.tar.bz2
[svn-r18810] Bug fix:
Program failued in FreeBSD and Windows machines because uint is a local backward compatibility extension of Linux. Changed them to the proper "unsigned int". Tested: FreeBSD (liberty,duty), h5committested.
Diffstat (limited to 'tools')
-rw-r--r--tools/h5dump/h5dumpgentest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c
index 5c543f4..4d89d3e 100644
--- a/tools/h5dump/h5dumpgentest.c
+++ b/tools/h5dump/h5dumpgentest.c
@@ -2966,7 +2966,7 @@ static void gent_array8(void)
hsize_t sdims[] = {F64_DIM0};
hsize_t tdims[] = {F64_DIM1};
int wdata[(F64_DIM1) * sizeof(int)]; /* Write buffer */
- uint i;
+ unsigned int i;
/*
* Initialize data. i is the element in the dataspace, j and k the
@@ -6517,7 +6517,7 @@ gent_packedbits(void)
int16_t dset16[F66_XDIM][F66_YDIM16], val16bits;
int32_t dset32[F66_XDIM][F66_YDIM32], val32bits;
double dsetdbl[F66_XDIM][F66_YDIM8];
- uint i, j;
+ unsigned int i, j;
fid = H5Fcreate(FILE66, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
@@ -6526,7 +6526,7 @@ gent_packedbits(void)
space = H5Screate_simple(2, dims, NULL);
dataset = H5Dcreate2(fid, F66_DATASETU08, H5T_STD_U8LE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
- valu8bits = (uint8_t) ~0; /* all 1s */
+ valu8bits = (uint8_t) ~0u; /* all 1s */
for(i = 0; i < dims[0]; i++){
dsetu8[i][0] = valu8bits;
for(j = 1; j < dims[1]; j++) {
@@ -6544,7 +6544,7 @@ gent_packedbits(void)
space = H5Screate_simple(2, dims, NULL);
dataset = H5Dcreate2(fid, F66_DATASETU16, H5T_STD_U16LE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
- valu16bits = (uint16_t) ~0; /* all 1s */
+ valu16bits = (uint16_t) ~0u; /* all 1s */
for(i = 0; i < dims[0]; i++){
dsetu16[i][0] = valu16bits;
for(j = 1; j < dims[1]; j++) {
@@ -6562,7 +6562,7 @@ gent_packedbits(void)
space = H5Screate_simple(2, dims, NULL);
dataset = H5Dcreate2(fid, F66_DATASETU32, H5T_STD_U32LE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
- valu32bits = (uint32_t) ~0; /* all 1s */
+ valu32bits = (uint32_t) ~0u; /* all 1s */
for(i = 0; i < dims[0]; i++){
dsetu32[i][0] = valu32bits;
for(j = 1; j < dims[1]; j++) {