summaryrefslogtreecommitdiffstats
path: root/tools/h5repack
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-08-29 19:54:21 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-08-29 19:54:21 (GMT)
commitcf05c2d76255a3384e1ec057f6fdcaaa7cb46f2b (patch)
tree1745dabfd58db56138f070927d2d1d91dbc372b7 /tools/h5repack
parent5d49cf770acae2912224d27e55b96fc2ba6abf49 (diff)
downloadhdf5-cf05c2d76255a3384e1ec057f6fdcaaa7cb46f2b.zip
hdf5-cf05c2d76255a3384e1ec057f6fdcaaa7cb46f2b.tar.gz
hdf5-cf05c2d76255a3384e1ec057f6fdcaaa7cb46f2b.tar.bz2
[svn-r15556] Check options for H5Pset_alignment.
threshold is zero default (a valid value) but zero is not a valid alignment tested: windows, linux
Diffstat (limited to 'tools/h5repack')
-rw-r--r--tools/h5repack/h5repack.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/tools/h5repack/h5repack.c b/tools/h5repack/h5repack.c
index 75684fc..91ade4f 100644
--- a/tools/h5repack/h5repack.c
+++ b/tools/h5repack/h5repack.c
@@ -430,22 +430,15 @@ static int check_options(pack_opt_t *options)
/*--------------------------------------------------------------------------------
- * verify alignment options; both threshold and alignment sizes must be present
+ * verify alignment options; threshold is zero default but alignment not
*---------------------------------------------------------------------------------
*/
-#if 0
- if ( options->alignment != 0 && options->threshold == 0 )
- {
- error_msg(progname, "threshold for H5Pset_alignment missing\n");
- return -1;
- }
-
+
if ( options->alignment == 0 && options->threshold != 0 )
{
error_msg(progname, "alignment for H5Pset_alignment missing\n");
return -1;
}
-#endif
return 0;
}