[PATCH 12/20] EXCLUDED_FILE_TYPES: Fix macro for negation case

Christoph Hellwig
2008-12-22T16:44:10Z

[-- Attachment #1: xfsprogs-quota-fix-macro-bracing --]
[-- Type: text/plain, Size: 934 bytes --]

From: Arkadiusz Miskiewicz <arekm@maven.pl

Fix EXCLUDED_FILE_TYPES in case when someone will
try to do if (!EXCLUDED_FILE_TYPES()).

Reviewed-by: Christoph Hellwig <hch@lst.de>

---
xfsprogs/quota/project.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/xfsprogs/quota/project.c b/xfsprogs/quota/project.c
index 7eac8e4..b4171e5 100644
--- a/xfsprogs/quota/project.c
+++ b/xfsprogs/quota/project.c
@@ -31,11 +31,11 @@ enum {
};

#define EXCLUDED_FILE_TYPES(x) \
- S_ISCHR((x)) \
+ (S_ISCHR((x)) \
|| S_ISBLK((x)) \
|| S_ISFIFO((x)) \
|| S_ISLNK((x)) \
- || S_ISSOCK((x))
+ || S_ISSOCK((x)))

static void
project_help(void)
--
1.6.0.5