xfs
[Top] [All Lists]

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

To: xfs@xxxxxxxxxxx
Subject: [PATCH 12/20] EXCLUDED_FILE_TYPES: Fix macro for negation case
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Mon, 22 Dec 2008 11:38:43 -0500
Cc: Arkadiusz Miskiewicz <arekm@xxxxxxxx>
References: <20081222163831.755809000@xxxxxxxxxxxxxxxxxxxxxx>
User-agent: quilt/0.46-1
From: Arkadiusz Miskiewicz <arekm@xxxxxxxx

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


Reviewed-by: Christoph Hellwig <hch@xxxxxx>

---
 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

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs

-- 

<Prev in Thread] Current Thread [Next in Thread>