summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2006-08-03 18:39:34 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2006-08-03 18:39:34 (GMT)
commitd2dc3525305f2e89c2c2ac582d47bad9b4a3a07e (patch)
tree79252ba697ac3b3ea212f6fb74d176aa7509a060 /src
parent59e9037d38a7c9934f9c6ae7f89320ca8f359443 (diff)
downloadhdf5-d2dc3525305f2e89c2c2ac582d47bad9b4a3a07e.zip
hdf5-d2dc3525305f2e89c2c2ac582d47bad9b4a3a07e.tar.gz
hdf5-d2dc3525305f2e89c2c2ac582d47bad9b4a3a07e.tar.bz2
[svn-r12531] Fixed a bug that occurred with 64-bit compilers. Types were used inconsistently
(the nlinks property was an int in some places and a size_t elsewhere--it is now a size_t everywhere).
Diffstat (limited to 'src')
-rw-r--r--src/H5Gtraverse.c16
-rw-r--r--src/H5P.c2
2 files changed, 9 insertions, 9 deletions
diff --git a/src/H5Gtraverse.c b/src/H5Gtraverse.c
index 03db4d3..9715785 100644
--- a/src/H5Gtraverse.c
+++ b/src/H5Gtraverse.c
@@ -56,17 +56,17 @@ static herr_t H5G_traverse_link_cb(H5G_loc_t *grp_loc/*in*/, const char *name,
const H5O_link_t *lnk, H5G_loc_t *obj_loc, void *_udata/*in,out*/,
hbool_t *own_obj_loc/*out*/);
static herr_t H5G_traverse_ud(H5G_loc_t *grp_loc/*in,out*/, H5O_link_t *lnk,
- H5G_loc_t *obj_loc/*in,out*/, int *nlinks/*in,out*/, hid_t lapl_id,
+ H5G_loc_t *obj_loc/*in,out*/, size_t *nlinks/*in,out*/, hid_t lapl_id,
hid_t dxpl_id);
static herr_t H5G_traverse_elink(H5G_loc_t *grp_loc/*in,out*/, H5O_link_t *lnk,
- H5G_loc_t *obj_loc/*in,out*/, int *nlinks/*in,out*/, hid_t lapl_id,
+ H5G_loc_t *obj_loc/*in,out*/, size_t *nlinks/*in,out*/, hid_t lapl_id,
hid_t dxpl_id);
static herr_t H5G_traverse_slink(H5G_loc_t *grp_loc/*in,out*/, H5O_link_t *lnk,
- H5G_loc_t *obj_loc/*in,out*/, int *nlinks/*in,out*/, hid_t lapl_id,
+ H5G_loc_t *obj_loc/*in,out*/, size_t *nlinks/*in,out*/, hid_t lapl_id,
hid_t dxpl_id);
static herr_t H5G_traverse_mount(H5G_loc_t *loc/*in,out*/);
static herr_t H5G_traverse_real(const H5G_loc_t *loc, const char *name,
- unsigned target, int *nlinks, H5G_traverse_t op, void *op_data,
+ unsigned target, size_t *nlinks, H5G_traverse_t op, void *op_data,
hid_t lapl_id, hid_t dxpl_id);
@@ -150,7 +150,7 @@ done:
*-------------------------------------------------------------------------
*/
static herr_t H5G_traverse_ud(H5G_loc_t *grp_loc/*in,out*/, H5O_link_t *lnk,
- H5G_loc_t *obj_loc/*in,out*/, int *nlinks/*in,out*/, hid_t lapl_id,
+ H5G_loc_t *obj_loc/*in,out*/, size_t *nlinks/*in,out*/, hid_t lapl_id,
hid_t dxpl_id)
{
const H5L_link_class_t *link_class; /* User-defined link class */
@@ -290,7 +290,7 @@ done:
*/
static herr_t
H5G_traverse_slink(H5G_loc_t *grp_loc/*in,out*/, H5O_link_t *lnk,
- H5G_loc_t *obj_loc/*in,out*/, int *nlinks/*in,out*/, hid_t lapl_id,
+ H5G_loc_t *obj_loc/*in,out*/, size_t *nlinks/*in,out*/, hid_t lapl_id,
hid_t dxpl_id)
{
H5G_trav_ud1_t udata; /* User data to pass to link traversal callback */
@@ -438,7 +438,7 @@ done:
*/
static herr_t
H5G_traverse_real(const H5G_loc_t *_loc, const char *name, unsigned target,
- int *nlinks, H5G_traverse_t op, void *op_data, hid_t lapl_id, hid_t dxpl_id)
+ size_t *nlinks, H5G_traverse_t op, void *op_data, hid_t lapl_id, hid_t dxpl_id)
{
H5G_loc_t loc; /* Location of start object */
H5O_loc_t grp_oloc; /* Object loc. for current group */
@@ -771,7 +771,7 @@ herr_t
H5G_traverse(const H5G_loc_t *loc, const char *name, unsigned target, H5G_traverse_t op,
void *op_data, hid_t lapl_id, hid_t dxpl_id)
{
- int nlinks; /* Link countdown value */
+ size_t nlinks; /* Link countdown value */
H5P_genplist_t *lapl; /* Property list with value for nlinks */
herr_t ret_value = SUCCEED; /* Return value */
diff --git a/src/H5P.c b/src/H5P.c
index 5c96586..3aa66ce 100644
--- a/src/H5P.c
+++ b/src/H5P.c
@@ -242,7 +242,7 @@ H5P_init_interface(void)
* - Default value for "max number of soft links to traverse"
*/
H5P_genclass_t *lacc_class; /* Pointer to link access property list class created */
- int nlinks = H5L_NLINKS_DEF;
+ size_t nlinks = H5L_NLINKS_DEF;
/* Group creation property class variables. In sequence, they are,
* - Creation property list class to modify
* - Default value for "group info"