summaryrefslogtreecommitdiffstats
path: root/tools/h5diff/h5diff_main.c
diff options
context:
space:
mode:
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;
}