summaryrefslogtreecommitdiffstats
path: root/tools/h5diff/h5diff_main.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-10-29 19:29:25 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-10-29 19:29:25 (GMT)
commite636e152ea862cb1cb9da3e0141f32ef5459052f (patch)
tree923d58473c91321fc0c7fe2158460219aca0f5cd /tools/h5diff/h5diff_main.c
parentcea8049404760b716944da782355eee9b0d1d914 (diff)
downloadhdf5-e636e152ea862cb1cb9da3e0141f32ef5459052f.zip
hdf5-e636e152ea862cb1cb9da3e0141f32ef5459052f.tar.gz
hdf5-e636e152ea862cb1cb9da3e0141f32ef5459052f.tar.bz2
[svn-r15987] Merge with 1.8 rev 15871
Eliminate -c option and make that behavior the default and return 2 instead of -1 on error status tested: linux
Diffstat (limited to 'tools/h5diff/h5diff_main.c')
-rw-r--r--tools/h5diff/h5diff_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/h5diff/h5diff_main.c b/tools/h5diff/h5diff_main.c
index d0e095d..f79099e 100644
--- a/tools/h5diff/h5diff_main.c
+++ b/tools/h5diff/h5diff_main.c
@@ -90,17 +90,17 @@ int main(int argc, const char *argv[])
/*-------------------------------------------------------------------------
* exit code
- * 1 if differences, 0 if no differences, -1 if error
+ * 1 if differences, 0 if no differences, 2 if error
*-------------------------------------------------------------------------
*/
ret = (nfound == 0 ? 0 : 1 );
- if ( options.m_contents && options.contents == 0 )
+ if ( options.contents == 0 )
ret = 1;
if(options.err_stat)
- ret = -1;
+ ret = 2;
return ret;
}