diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2009-10-20 23:46:50 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2009-10-20 23:46:50 (GMT) |
commit | 1df21492a0617ceedaf944f9b9f197d4091a0fb7 (patch) | |
tree | 642979f8ca623f99a1c9df7545c7532b263acce2 | |
parent | 0bd377a6d42733eb609d0662aa10c0c95d7b054c (diff) | |
download | hdf5-1df21492a0617ceedaf944f9b9f197d4091a0fb7.zip hdf5-1df21492a0617ceedaf944f9b9f197d4091a0fb7.tar.gz hdf5-1df21492a0617ceedaf944f9b9f197d4091a0fb7.tar.bz2 |
[svn-r17699] 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 6570861..36cac50 100755 --- a/tools/h5import/h5import.c +++ b/tools/h5import/h5import.c @@ -189,10 +189,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 9272632..970952a 100755 --- a/tools/h5import/h5importtest.c +++ b/tools/h5import/h5importtest.c @@ -393,6 +393,6 @@ main(void) - return (0); + return (EXIT_SUCCESS); } |