diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2009-10-20 23:46:13 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2009-10-20 23:46:13 (GMT) |
commit | bb281b23e958ba0a14ae3d562c46e6511e1c9106 (patch) | |
tree | 96177a2d79523d4ac750a4e85e91e7990f6b5ee4 | |
parent | fd6545ba5c0a94e6e850510836c312f6a73da673 (diff) | |
download | hdf5-bb281b23e958ba0a14ae3d562c46e6511e1c9106.zip hdf5-bb281b23e958ba0a14ae3d562c46e6511e1c9106.tar.gz hdf5-bb281b23e958ba0a14ae3d562c46e6511e1c9106.tar.bz2 |
[svn-r17697] 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.
-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); } |