Use EXIT_SUCCESS/FAILURE instead of 0/1

This commit is contained in:
Orestis Floros
2020-01-16 09:21:27 +01:00
parent f7aee6b908
commit 0ed94fc788
10 changed files with 12 additions and 12 deletions

View File

@ -163,7 +163,7 @@ void exec_i3_utility(char *name, char *argv[]) {
char buffer[BUFSIZ];
if (readlink("/proc/self/exe", buffer, BUFSIZ) == -1) {
warn("could not read /proc/self/exe");
_exit(1);
_exit(EXIT_FAILURE);
}
dir = dirname(buffer);
sasprintf(&migratepath, "%s/%s", dir, name);