summaryrefslogtreecommitdiffstats
path: root/tools/misc/repart_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/misc/repart_test.c')
-rw-r--r--tools/misc/repart_test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/misc/repart_test.c b/tools/misc/repart_test.c
index 493f4ce..0b54333 100644
--- a/tools/misc/repart_test.c
+++ b/tools/misc/repart_test.c
@@ -47,8 +47,8 @@ herr_t test_sec2_h5repart_opens(void);
herr_t
test_family_h5repart_opens(void)
{
- hid_t fid = -1;
- hid_t fapl_id = -1;
+ hid_t fid = H5I_INVALID_HID;
+ hid_t fapl_id = H5I_INVALID_HID;
/* open 1st file(single member file) with correct family size(20000 byte) */
if ((fapl_id = H5Pcreate(H5P_FILE_ACCESS)) < 0)
@@ -102,7 +102,7 @@ error:
herr_t
test_sec2_h5repart_opens(void)
{
- hid_t fid = -1;
+ hid_t fid = H5I_INVALID_HID;
/* open the sec2 file */
if ((fid = H5Fopen(FILENAME[2], H5F_ACC_RDWR, H5P_DEFAULT)) < 0)
@@ -151,3 +151,4 @@ error:
nerrors, 1 == nerrors ? "" : "S");
HDexit(EXIT_FAILURE);
} /* end main() */
+