summaryrefslogtreecommitdiffstats
path: root/tools/h5repack
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2014-08-11 19:13:45 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2014-08-11 19:13:45 (GMT)
commit88fb6b1374e748b06826e17ca65c15087ae5b5ac (patch)
tree7c550af01bb506aa5d5bb9208abad6687f7b0f3a /tools/h5repack
parent2a5454616a653b9830c103be7381af28ba397a3d (diff)
downloadhdf5-88fb6b1374e748b06826e17ca65c15087ae5b5ac.zip
hdf5-88fb6b1374e748b06826e17ca65c15087ae5b5ac.tar.gz
hdf5-88fb6b1374e748b06826e17ca65c15087ae5b5ac.tar.bz2
[svn-r25531] remove use of C99 PRI that failed on windows in dtypes.c
fix bugs where hid_t were assumed to be 32 bit ints or herr_t.
Diffstat (limited to 'tools/h5repack')
-rw-r--r--tools/h5repack/h5repack.c2
-rw-r--r--tools/h5repack/h5repack_copy.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5repack/h5repack.c b/tools/h5repack/h5repack.c
index 742bb06..c1e63f1 100644
--- a/tools/h5repack/h5repack.c
+++ b/tools/h5repack/h5repack.c
@@ -337,7 +337,7 @@ done:
*/
int named_datatype_free(named_dt_t **named_dt_head_p, int ignore_err) {
named_dt_t *dt = *named_dt_head_p;
- hid_t ret_value = -1;
+ int ret_value = -1;
while (dt) {
/* Pop the datatype off the stack and free it */
diff --git a/tools/h5repack/h5repack_copy.c b/tools/h5repack/h5repack_copy.c
index 44bea47..b5f6861 100644
--- a/tools/h5repack/h5repack_copy.c
+++ b/tools/h5repack/h5repack_copy.c
@@ -68,7 +68,7 @@ static herr_t walk_error_callback(unsigned n, const H5E_error2_t *err_desc, void
/* get the major number from the error stack. */
static herr_t walk_error_callback(UNUSED unsigned n, const H5E_error2_t *err_desc, void *udata) {
if (err_desc)
- *((int *) udata) = err_desc->maj_num;
+ *((hid_t *) udata) = err_desc->maj_num;
return 0;
}