summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2009-10-20 23:46:38 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2009-10-20 23:46:38 (GMT)
commitcdff348e48ddd97a13bafc19c5251fda7aa646a3 (patch)
tree24d9bf8fda4bc28f1145eee954098d41207a6f4f /tools
parentf6377589f7f0cfbd6d1ba28aa17a42ab3948f18e (diff)
downloadhdf5-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-xtools/h5import/h5import.c4
-rwxr-xr-xtools/h5import/h5importtest.c2
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);
}