summaryrefslogtreecommitdiffstats
path: root/tools/h5diff/h5diff_main.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-10-15 16:10:15 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-10-15 16:10:15 (GMT)
commitb353fb8b5a51f8ba853df9512d7ab57e66f86395 (patch)
treebe5b09a1593920153b1cbd1e14ae6a00d1f342ce /tools/h5diff/h5diff_main.c
parent122b938cbf1a48a384cda69b0943489afa0f2dca (diff)
downloadhdf5-b353fb8b5a51f8ba853df9512d7ab57e66f86395.zip
hdf5-b353fb8b5a51f8ba853df9512d7ab57e66f86395.tar.gz
hdf5-b353fb8b5a51f8ba853df9512d7ab57e66f86395.tar.bz2
[svn-r15871] Eliminate -c option and make that behavior the default and return 2 instead of -1 on error status
Tested: windows, 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 d511103..eb85407 100644
--- a/tools/h5diff/h5diff_main.c
+++ b/tools/h5diff/h5diff_main.c
@@ -84,17 +84,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;
}