summaryrefslogtreecommitdiffstats
path: root/tools/h5import/h5import.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2009-10-20 23:46:13 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2009-10-20 23:46:13 (GMT)
commitbb281b23e958ba0a14ae3d562c46e6511e1c9106 (patch)
tree96177a2d79523d4ac750a4e85e91e7990f6b5ee4 /tools/h5import/h5import.c
parentfd6545ba5c0a94e6e850510836c312f6a73da673 (diff)
downloadhdf5-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.
Diffstat (limited to 'tools/h5import/h5import.c')
-rwxr-xr-xtools/h5import/h5import.c4
1 files changed, 2 insertions, 2 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