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

@@ -34,7 +34,7 @@ recurse(const char *path, void (*fn)(const char *))
while (--p >= buf && *p == '/') *p ='\0';
strlcat(buf, "/", sizeof(buf));
if (strlcat(buf, d->d_name, sizeof(buf)) >= sizeof(buf))
enprintf(EXIT_FAILURE, "path too long\n");
eprintf("path too long\n");
fn(buf);
}