No need to use enprintf() with EXIT_FAILURE

eprintf() does just that.
This commit is contained in:
sin
2014-01-30 13:54:16 +00:00
parent b1b225c9ee
commit 94e97f19cd
4 changed files with 7 additions and 9 deletions

View File

@@ -43,7 +43,7 @@ main(int argc, char *argv[])
tmpdir = p;
if (snprintf(tmppath, sizeof(tmppath), "%s/%s", tmpdir, template) >= sizeof(tmppath))
enprintf(EXIT_FAILURE, "path too long\n");
eprintf("path too long\n");
if (dflag) {
if (!mkdtemp(tmppath)) {
if (!qflag)