Global replace exit(0) with more readable exit(EXIT_SUCCESS)

This commit is contained in:
Unto Sten 2019-05-10 20:10:37 +03:00 committed by William Roberts
parent f46b64fccb
commit 5d8f44e2c3
11 changed files with 13 additions and 13 deletions

View file

@ -116,7 +116,7 @@ int main(int argc, char **argv)
case 'h': case 'h':
case '-': case '-':
usage(); usage();
exit(0); exit(EXIT_SUCCESS);
default: default:
usage(); usage();
die("unrecognized parameter '%c'", i); die("unrecognized parameter '%c'", i);
@ -133,7 +133,7 @@ int main(int argc, char **argv)
} }
if (n == 0) { if (n == 0) {
usage(); usage();
exit(0); exit(EXIT_SUCCESS);
} }
interval = n; interval = n;
} }

View file

@ -51,5 +51,5 @@ int main(int argc, char **argv)
printf("\n"); printf("\n");
} }
exit(0); exit(EXIT_SUCCESS);
} }

View file

@ -32,5 +32,5 @@ int main(int argc, char **argv)
printf("%s\n", buf); printf("%s\n", buf);
freecon(buf); freecon(buf);
exit(0); exit(EXIT_SUCCESS);
} }

View file

@ -32,5 +32,5 @@ int main(int argc, char **argv)
printf("%s\n", buf); printf("%s\n", buf);
freecon(buf); freecon(buf);
exit(0); exit(EXIT_SUCCESS);
} }

View file

@ -32,5 +32,5 @@ int main(int argc, char **argv)
printf("%s\n", buf); printf("%s\n", buf);
freecon(buf); freecon(buf);
exit(0); exit(EXIT_SUCCESS);
} }

View file

@ -27,12 +27,12 @@ int main(int argc, char **argv)
if (!buf[0]) { if (!buf[0]) {
printf("none\n"); printf("none\n");
exit(0); exit(EXIT_SUCCESS);
} }
for (ptr = buf; *ptr; ptr++) { for (ptr = buf; *ptr; ptr++) {
printf("%s\n", *ptr); printf("%s\n", *ptr);
} }
freeconary(buf); freeconary(buf);
exit(0); exit(EXIT_SUCCESS);
} }

View file

@ -23,5 +23,5 @@ int main(int argc, char **argv)
printf("%s\t%s\n", argv[i], buf); printf("%s\t%s\n", argv[i], buf);
freecon(buf); freecon(buf);
} }
exit(0); exit(EXIT_SUCCESS);
} }

View file

@ -27,5 +27,5 @@ int main(int argc, char **argv)
printf("%s\n", buf); printf("%s\n", buf);
freecon(buf); freecon(buf);
exit(0); exit(EXIT_SUCCESS);
} }

View file

@ -36,5 +36,5 @@ int main(int argc, char **argv)
for (i = 0; i < n; i++) for (i = 0; i < n; i++)
printf("Context %d\t%s\n", i, contextlist[i]); printf("Context %d\t%s\n", i, contextlist[i]);
freeconary(contextlist); freeconary(contextlist);
exit(0); exit(EXIT_SUCCESS);
} }

View file

@ -14,5 +14,5 @@ int main(int argc __attribute__ ((unused)), char **argv)
} }
printf("%d\n", rc); printf("%d\n", rc);
exit(0); exit(EXIT_SUCCESS);
} }

View file

@ -20,5 +20,5 @@ int main(int argc, char **argv)
exit(2); exit(2);
} }
} }
exit(0); exit(EXIT_SUCCESS);
} }