summaryrefslogtreecommitdiffstats
path: root/tools/h5jam/h5jam.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2009-12-26 07:43:50 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2009-12-26 07:43:50 (GMT)
commit8de1f3aab3c40a81402759d8416d5e71b66b4919 (patch)
tree0e222109f002762b653900ba9239872e74aea0cf /tools/h5jam/h5jam.c
parentb6a36494bc0593e25ce78a807c1ad2121a139a7f (diff)
downloadhdf5-8de1f3aab3c40a81402759d8416d5e71b66b4919.zip
hdf5-8de1f3aab3c40a81402759d8416d5e71b66b4919.tar.gz
hdf5-8de1f3aab3c40a81402759d8416d5e71b66b4919.tar.bz2
[svn-r18053] Bug fix: 1192
Description: Fixed exit code (sometimes return code in Main) to follow the HDF5 standards. Tested: H5committested plus serial test in Jam.
Diffstat (limited to 'tools/h5jam/h5jam.c')
-rw-r--r--tools/h5jam/h5jam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5jam/h5jam.c b/tools/h5jam/h5jam.c
index c6fdb5c..cceed75 100644
--- a/tools/h5jam/h5jam.c
+++ b/tools/h5jam/h5jam.c
@@ -454,7 +454,7 @@ copy_some_to_file (int infid, int outfid, hsize_t startin, hsize_t startout,
if (nchars <= 0)
{
printf ("huh? \n");
- exit (1);
+ exit (EXIT_FAILURE);
}
/*ncw = */ HDwrite (outfid, buf, (unsigned) nchars);