summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2013-09-13 21:11:30 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2013-09-13 21:11:30 (GMT)
commita8c63e28d570c1eea5a23b9ed684efb4cd24e3ba (patch)
treea501ac6a79670c132cad11386a819ffaea570945 /tools/lib/h5diff.c
parent3c021d3a7775df18247de19cee3805178cd2666c (diff)
downloadhdf5-a8c63e28d570c1eea5a23b9ed684efb4cd24e3ba.zip
hdf5-a8c63e28d570c1eea5a23b9ed684efb4cd24e3ba.tar.gz
hdf5-a8c63e28d570c1eea5a23b9ed684efb4cd24e3ba.tar.bz2
[svn-r24138] Cast constants to specified type.
Cast smaller vars to larger type. Cast calculation result to correct type. Changed int member to hbool_t Tested: local linux
Diffstat (limited to 'tools/lib/h5diff.c')
-rw-r--r--tools/lib/h5diff.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/lib/h5diff.c b/tools/lib/h5diff.c
index 1752155..541525d 100644
--- a/tools/lib/h5diff.c
+++ b/tools/lib/h5diff.c
@@ -839,10 +839,10 @@ hsize_t h5diff(const char *fname1,
{
h5difftrace("h5diff no object specified\n");
/* set root group */
- obj1fullname = (char*)HDcalloc(2, sizeof(char));
+ obj1fullname = (char*)HDcalloc((size_t)2, sizeof(char));
HDstrcat(obj1fullname, "/");
obj1type = H5TRAV_TYPE_GROUP;
- obj2fullname = (char*)HDcalloc(2, sizeof(char));
+ obj2fullname = (char*)HDcalloc((size_t)2, sizeof(char));
HDstrcat(obj2fullname, "/");
obj2type = H5TRAV_TYPE_GROUP;
}
@@ -1554,9 +1554,9 @@ hsize_t diff(hid_t file1_id,
hid_t grp1_id = (-1);
hid_t grp2_id = (-1);
int ret;
- int is_dangle_link1 = 0;
- int is_dangle_link2 = 0;
- int is_hard_link = 0;
+ hbool_t is_dangle_link1 = FALSE;
+ hbool_t is_dangle_link2 = FALSE;
+ hbool_t is_hard_link = FALSE;
hsize_t nfound = 0;
h5trav_type_t object_type;
@@ -1598,7 +1598,7 @@ hsize_t diff(hid_t file1_id,
goto out;
}
else
- is_dangle_link1 = 1;
+ is_dangle_link1 = TRUE;
}
else if (ret < 0)
goto out;
@@ -1616,7 +1616,7 @@ hsize_t diff(hid_t file1_id,
goto out;
}
else
- is_dangle_link2 = 1;
+ is_dangle_link2 = TRUE;
}
else if (ret < 0)
goto out;