aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_lfiles.c
diff options
context:
space:
mode:
authorjozan <jozan@noemail.net>2020-11-05 21:17:14 +0000
committerjozan <jozan@noemail.net>2020-11-05 21:17:14 +0000
commit3eb14b975e277c0094be80a0e62c8de42bb80f31 (patch)
tree6fce717f638257af249fca5c373299d1edeaf13a /src/c_lfiles.c
parentCorrectly parsed file names (diff)
downloadunixize-3eb14b975e277c0094be80a0e62c8de42bb80f31.tar.gz
unixize-3eb14b975e277c0094be80a0e62c8de42bb80f31.tar.bz2
unixize-3eb14b975e277c0094be80a0e62c8de42bb80f31.tar.xz
unixize-3eb14b975e277c0094be80a0e62c8de42bb80f31.tar.zst
unixize-3eb14b975e277c0094be80a0e62c8de42bb80f31.zip
Cleaner
FossilOrigin-Name: 03d9d3326460b4854e1c9bf6335c6fefcf4925bd1c0d13c2e1822c74fd6e8964
Diffstat (limited to 'src/c_lfiles.c')
-rw-r--r--src/c_lfiles.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/c_lfiles.c b/src/c_lfiles.c
index f39c330..c39cd02 100644
--- a/src/c_lfiles.c
+++ b/src/c_lfiles.c
@@ -138,30 +138,18 @@ c_lfiles_gather(void)
head = NULL;
link = NULL;
if (getcwd(path, MAXPATHLEN) == NULL) {
- dprintf(
- STDERR_FILENO,
- "unixize: %s\n",
- strerror(errno)
- );
+ u_dump_errno();
return (NULL);
}
dirp = opendir(path);
if (dirp == NULL) {
- dprintf(
- STDERR_FILENO,
- "unixize: %s\n",
- strerror(errno)
- );
+ u_dump_errno();
return (NULL);
}
while ((dp = readdir(dirp)) != NULL) {
link = c_lfiles_new(dp->d_name, dp->d_type);
if (link == NULL) {
- dprintf(
- STDERR_FILENO,
- "unixize: %s\n",
- strerror(errno)
- );
+ u_dump_errno();
c_lfiles_clear(&link);
return (NULL);
}