[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:
Albert Cheng 2009-10-20 18:46:13 -05:00
parent fd6545ba5c
commit bb281b23e9
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -370,6 +370,6 @@ main(void)
return (0);
return (EXIT_SUCCESS);
}