diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-10-15 16:10:15 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-10-15 16:10:15 (GMT) |
commit | b353fb8b5a51f8ba853df9512d7ab57e66f86395 (patch) | |
tree | be5b09a1593920153b1cbd1e14ae6a00d1f342ce /tools/h5diff/h5diff_main.c | |
parent | 122b938cbf1a48a384cda69b0943489afa0f2dca (diff) | |
download | hdf5-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.c | 6 |
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; } |