diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2024-03-09 17:06:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-09 17:06:10 (GMT) |
commit | 0ea1d7280ba93039cad14faf7b0ed65da20ce563 (patch) | |
tree | 5cd59487a3270224e0aec98606a13cf22706cc26 /tools | |
parent | d4c84f8d0a60e6eedd7288116d203dccf24a0b3a (diff) | |
download | hdf5-0ea1d7280ba93039cad14faf7b0ed65da20ce563.zip hdf5-0ea1d7280ba93039cad14faf7b0ed65da20ce563.tar.gz hdf5-0ea1d7280ba93039cad14faf7b0ed65da20ce563.tar.bz2 |
Clean up off_t usage (#4095)
* Add comments to C++ and Fortran API calls that use off_t
* Remove noise casts for small integers
Diffstat (limited to 'tools')
-rw-r--r-- | tools/src/h5import/h5import.c | 3 | ||||
-rw-r--r-- | tools/test/h5dump/h5dumpgentest.c | 4 | ||||
-rw-r--r-- | tools/test/h5repack/h5repacktst.c | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/tools/src/h5import/h5import.c b/tools/src/h5import/h5import.c index 663f68a..828cb6a 100644 --- a/tools/src/h5import/h5import.c +++ b/tools/src/h5import/h5import.c @@ -4702,8 +4702,7 @@ process(struct Options *opt) return (-1); } fclose(extfile); - H5Pset_external(proplist, in->externFilename, (off_t)0, - numOfElements * (hsize_t)in->inputSize / 8); + H5Pset_external(proplist, in->externFilename, 0, numOfElements * (hsize_t)in->inputSize / 8); } /* create dataspace */ diff --git a/tools/test/h5dump/h5dumpgentest.c b/tools/test/h5dump/h5dumpgentest.c index e12690c..9c42a0e 100644 --- a/tools/test/h5dump/h5dumpgentest.c +++ b/tools/test/h5dump/h5dumpgentest.c @@ -5400,10 +5400,10 @@ make_external(hid_t fid) size = (max_size[0] * sizeof(int) / 2); dcpl = H5Pcreate(H5P_DATASET_CREATE); - ret = H5Pset_external(dcpl, "ext1.bin", (off_t)0, size); + ret = H5Pset_external(dcpl, "ext1.bin", 0, size); assert(ret >= 0); - ret = H5Pset_external(dcpl, "ext2.bin", (off_t)0, size); + ret = H5Pset_external(dcpl, "ext2.bin", 0, size); assert(ret >= 0); sid = H5Screate_simple(1, cur_size, max_size); diff --git a/tools/test/h5repack/h5repacktst.c b/tools/test/h5repack/h5repacktst.c index 98d5362..b414f64 100644 --- a/tools/test/h5repack/h5repacktst.c +++ b/tools/test/h5repack/h5repacktst.c @@ -3714,7 +3714,7 @@ make_external(hid_t loc_id) /* create */ if ((dcpl = H5Pcreate(H5P_DATASET_CREATE)) < 0) goto out; - if (H5Pset_external(dcpl, H5REPACK_EXTFILE, (off_t)0, size) < 0) + if (H5Pset_external(dcpl, H5REPACK_EXTFILE, 0, size) < 0) goto out; if ((sid = H5Screate_simple(1, cur_size, max_size)) < 0) goto out; |