Replaced plain 0's and 1's in exit statements with EXIT_SUCCESS or EXIT_FAILURE

This commit is contained in:
mc78
2019-11-11 16:30:09 +01:00
committed by Oliver Schmidt
parent c9355734f5
commit 7bae9038cf
7 changed files with 12 additions and 10 deletions

View File

@@ -22,6 +22,8 @@
#define BADCH '?'
#define ENDARGS "--"
#define NUMARGS 2
int main (int argc, char **argv)
{
char *optstring = argv[1];
@@ -34,9 +36,9 @@ int main (int argc, char **argv)
char *opi;
if (argc == 1) {
if (argc != NUMARGS) {
fprintf (stderr, "Usage: %s optstring args\n", argv0);
exit (1);
exit (EXIT_FAILURE);
}
argv++;
argc--;