From 3eb14b975e277c0094be80a0e62c8de42bb80f31 Mon Sep 17 00:00:00 2001 From: jozan Date: Thu, 5 Nov 2020 21:17:14 +0000 Subject: Cleaner FossilOrigin-Name: 03d9d3326460b4854e1c9bf6335c6fefcf4925bd1c0d13c2e1822c74fd6e8964 --- src/c_lfiles.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'src/c_lfiles.c') 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); } -- cgit v1.2.3