summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2013-12-10 00:11:46 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2013-12-10 00:11:46 (GMT)
commit2cbf8b46709eb67046e275c764f6b3e2256bcd35 (patch)
tree89a2867f2e37b251b01dac9f3f158c61cfed5555
parent364a0fc4d8358dd891af4fc4a0760d1655c033a7 (diff)
downloadhdf5-2cbf8b46709eb67046e275c764f6b3e2256bcd35.zip
hdf5-2cbf8b46709eb67046e275c764f6b3e2256bcd35.tar.gz
hdf5-2cbf8b46709eb67046e275c764f6b3e2256bcd35.tar.bz2
[svn-r24517] Corrected the number of links at least 2.
-rw-r--r--test/twriteorder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/twriteorder.c b/test/twriteorder.c
index e43d58f..0dd768c 100644
--- a/test/twriteorder.c
+++ b/test/twriteorder.c
@@ -139,8 +139,8 @@ parse_option(int argc, char * const argv[])
};
break;
case 'n': /* number of planes to write/read */
- if ((nlinkedblock_g = atoi(optarg)) <= 0){
- fprintf(stderr, "bad number of linked blocks %s, must be a positive integer\n", optarg);
+ if ((nlinkedblock_g = atoi(optarg)) < 2){
+ fprintf(stderr, "bad number of linked blocks %s, must be greater than 1.\n", optarg);
usage(progname_g);
Hgoto_error(-1);
};