about summary refs log tree commit diff
path: root/minc.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-03-08 17:17:48 +0100
committerLeah Neukirchen <leah@vuxu.org>2020-03-08 17:17:48 +0100
commit48b490f3793ec438a7fa15ae249d98e4871d34cd (patch)
treeb0953e8e9dc3399c64d6227bb583e3fda8c8fa97 /minc.c
parent6dd0799aab88c1e923141b249f90fd728324e1f3 (diff)
downloadmblaze-48b490f3793ec438a7fa15ae249d98e4871d34cd.tar.gz
mblaze-48b490f3793ec438a7fa15ae249d98e4871d34cd.tar.xz
mblaze-48b490f3793ec438a7fa15ae249d98e4871d34cd.zip
minc: extract DT_* handling
Diffstat (limited to 'minc.c')
-rw-r--r--minc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/minc.c b/minc.c
index 4e55292..f495da1 100644
--- a/minc.c
+++ b/minc.c
@@ -11,6 +11,7 @@
 #include <unistd.h>
 
 #include "blaze822.h"
+#include "blaze822_priv.h"
 
 static int qflag;
 static int status;
@@ -35,10 +36,9 @@ inc(char *dir)
 	}
 
 	while ((d = readdir(fd))) {
-#if defined(DT_REG) && defined(DT_UNKNOWN)
-		if (d->d_type != DT_REG && d->d_type != DT_UNKNOWN)
+		if (!MAIL_DT(d->d_type))
 			continue;
-#endif
+
 		if (d->d_name[0] == '.')
 			continue;