From 67e299bae5021b788a293f5bdd19db3552be823d Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Thu, 10 Dec 2009 00:10:25 +0200 Subject: [PATCH] * mu-path: cosmetics --- src/mu-path.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mu-path.c b/src/mu-path.c index 22554be3..0ec8169a 100644 --- a/src/mu-path.c +++ b/src/mu-path.c @@ -240,14 +240,14 @@ mu_path_walk_maildir (const char *path, MuPathWalkMsgCallback cb_msg, return MU_ERROR; } - if ((statbuf.st_mode & S_IFMT) == S_IFREG) + if (S_ISREG(statbuf.st_mode)) return process_file (path, cb_msg, data); - - if ((statbuf.st_mode & S_IFMT) == S_IFDIR) + else if (S_ISDIR(statbuf.st_mode)) return process_dir (path, cb_msg, cb_dir, data); + else + g_warning ("%s: unsupported file type for %s", + __FUNCTION__, path); - g_warning ("%s: unsupported file type for %s", - __FUNCTION__, path); return MU_ERROR; }