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

@@ -62,16 +62,16 @@ main(int argc, char *argv[])
if (!mkdtemp(path)) {
if (!qflag)
eprintf("mkdtemp %s:", path);
exit(EXIT_FAILURE);
exit(1);
}
} else {
if ((fd = mkstemp(path)) < 0) {
if (!qflag)
eprintf("mkstemp %s:", path);
exit(EXIT_FAILURE);
exit(1);
}
close(fd);
}
puts(path);
return EXIT_SUCCESS;
return 0;
}