From 48b490f3793ec438a7fa15ae249d98e4871d34cd Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sun, 8 Mar 2020 17:17:48 +0100 Subject: minc: extract DT_* handling --- minc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'minc.c') diff --git a/minc.c b/minc.c index 4e55292..f495da1 100644 --- a/minc.c +++ b/minc.c @@ -11,6 +11,7 @@ #include #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; -- cgit 1.4.1