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

2
du.c
View File

@@ -151,7 +151,7 @@ du(const char *path)
if (S_ISLNK(st.st_mode)) {
if (snprintf(file, sizeof(file), "%s/%s",
cwd, dent->d_name) >= sizeof(file))
enprintf(EXIT_FAILURE, "path too long\n");
eprintf("path too long\n");
} else {
xrealpath(dent->d_name, file);
}