summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/h5dump/h5dumpgentest.c2
-rw-r--r--tools/h5repack/h5repack_filters.c2
-rw-r--r--tools/h5repack/testh5repack_make.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c
index 0dcde7f..4f1c0f5 100644
--- a/tools/h5dump/h5dumpgentest.c
+++ b/tools/h5dump/h5dumpgentest.c
@@ -4664,7 +4664,7 @@ static void gent_filters(void)
assert(ret>=0);
/* set the scaleoffset filter */
- ret=H5Pset_scaleoffset(dcpl,2,H5Tget_size(H5T_NATIVE_INT));
+ ret=H5Pset_scaleoffset(dcpl,H5Z_SO_INT,H5Tget_size(H5T_NATIVE_INT));
assert(ret>=0);
ret=make_dset(fid,"scaleoffset",sid,H5T_NATIVE_INT,dcpl,buf1);
diff --git a/tools/h5repack/h5repack_filters.c b/tools/h5repack/h5repack_filters.c
index 1eea971..db3277b 100644
--- a/tools/h5repack/h5repack_filters.c
+++ b/tools/h5repack/h5repack_filters.c
@@ -392,7 +392,7 @@ int apply_filters(const char* name, /* object name from traverse list */
/* The following line needs to be changed in the future,
H5_SO_INT needs to be passed as a parameter, it can
be either H5_SO_FLOAT_DSCALE or H5_SO_INT. KY, 2005/8/31 */
- if (H5Pset_scaleoffset(dcpl_id,H5_SO_INT,aggression)<0)
+ if (H5Pset_scaleoffset(dcpl_id,H5Z_SO_INT,aggression)<0)
return -1;
break;
} /* switch */
diff --git a/tools/h5repack/testh5repack_make.c b/tools/h5repack/testh5repack_make.c
index 757f11f..5213043 100644
--- a/tools/h5repack/testh5repack_make.c
+++ b/tools/h5repack/testh5repack_make.c
@@ -786,7 +786,7 @@ int make_scaleoffset(hid_t loc_id)
H5Tclose(dtid);
goto out;
}
- if (H5Pset_scaleoffset(dcpl,H5_SO_INT,31)<0)
+ if (H5Pset_scaleoffset(dcpl,H5Z_SO_INT,31)<0)
{
H5Tclose(dtid);
goto out;