diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2009-10-20 23:46:38 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2009-10-20 23:46:38 (GMT) |
commit | cdff348e48ddd97a13bafc19c5251fda7aa646a3 (patch) | |
tree | 24d9bf8fda4bc28f1145eee954098d41207a6f4f /tools | |
parent | f6377589f7f0cfbd6d1ba28aa17a42ab3948f18e (diff) | |
download | hdf5-cdff348e48ddd97a13bafc19c5251fda7aa646a3.zip hdf5-cdff348e48ddd97a13bafc19c5251fda7aa646a3.tar.gz hdf5-cdff348e48ddd97a13bafc19c5251fda7aa646a3.tar.bz2 |
[svn-r17698] Bug fix: (1192)
Error exit code of -1 is illegal (exit code is unsigned).
Changed it to EXIT_FAILURE (1).
Also changed exit(0) to exit(EXIT_SUCCESS) for better coding.
Tested: jam.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/h5import/h5import.c | 4 | ||||
-rwxr-xr-x | tools/h5import/h5importtest.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/h5import/h5import.c b/tools/h5import/h5import.c index 933754e..84b2c7d 100755 --- a/tools/h5import/h5import.c +++ b/tools/h5import/h5import.c @@ -190,10 +190,10 @@ int main(int argc, char *argv[]) if (process(&opt) == -1) goto err; - return(0); + return(EXIT_SUCCESS); err: (void) fprintf(stderr, err4); - return(-1); + return(EXIT_FAILURE); } static int diff --git a/tools/h5import/h5importtest.c b/tools/h5import/h5importtest.c index dd1a2be..9c839a3 100755 --- a/tools/h5import/h5importtest.c +++ b/tools/h5import/h5importtest.c @@ -370,6 +370,6 @@ main(void) - return (0); + return (EXIT_SUCCESS); } |