diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-01-13 23:09:48 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-01-13 23:10:09 (GMT) |
commit | 341600b4a68dc9dbf11e1c43c3ff2746c200bd2c (patch) | |
tree | b8c1644d019ab10eb862fe477fe09f8c3db9b027 /tools/src/h5format_convert | |
parent | c3c60dc7b5d5104475748f9967135903e3974cc3 (diff) | |
download | hdf5-341600b4a68dc9dbf11e1c43c3ff2746c200bd2c.zip hdf5-341600b4a68dc9dbf11e1c43c3ff2746c200bd2c.tar.gz hdf5-341600b4a68dc9dbf11e1c43c3ff2746c200bd2c.tar.bz2 |
Update tools hid_t declarations with H5I_INVALID_HID
Diffstat (limited to 'tools/src/h5format_convert')
-rw-r--r-- | tools/src/h5format_convert/h5format_convert.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/src/h5format_convert/h5format_convert.c b/tools/src/h5format_convert/h5format_convert.c index 257a047..f5234f4 100644 --- a/tools/src/h5format_convert/h5format_convert.c +++ b/tools/src/h5format_convert/h5format_convert.c @@ -219,8 +219,8 @@ leave(int ret) static int convert(hid_t fid, const char *dname) { - hid_t dcpl = -1; - hid_t did = -1; + hid_t dcpl = H5I_INVALID_HID; + hid_t did = H5I_INVALID_HID; H5D_layout_t layout_type; H5D_chunk_index_t idx_type; @@ -399,7 +399,7 @@ main(int argc, const char *argv[]) { H5E_auto2_t func; void *edata; - hid_t fid = -1; + hid_t fid = H5I_INVALID_HID; h5tools_setprogname(PROGRAMNAME); h5tools_setstatus(EXIT_SUCCESS); |