Stop using EXIT_{SUCCESS,FAILURE}

This commit is contained in:
sin
2014-10-02 23:46:04 +01:00
parent 7305786244
commit 0c5b7b9155
63 changed files with 89 additions and 89 deletions

View File

@@ -23,7 +23,7 @@ main(int argc, char *argv[])
{
const char *adj = NULL;
long val;
int i, which = PRIO_PROCESS, status = EXIT_SUCCESS;
int i, which = PRIO_PROCESS, status = 0;
ARGBEGIN {
case 'n':
@@ -60,7 +60,7 @@ main(int argc, char *argv[])
who = pwd->pw_uid;
else if(errno != 0) {
perror("can't read passwd");
status = EXIT_FAILURE;
status = 1;
continue;
}
}
@@ -68,7 +68,7 @@ main(int argc, char *argv[])
who = strtop(argv[i]);
if(who < 0 || !renice(which, who, val))
status = EXIT_FAILURE;
status = 1;
}
return status;