mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[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.
This commit is contained in:
parent
fd6545ba5c
commit
bb281b23e9
@ -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
|
||||
|
@ -370,6 +370,6 @@ main(void)
|
||||
|
||||
|
||||
|
||||
return (0);
|
||||
return (EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user