summaryrefslogtreecommitdiffstats
path: root/sys/gnu/fs/xfs/xfs_attr.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-06-01 19:01:47 +0000
committerimp <imp@FreeBSD.org>2006-06-01 19:01:47 +0000
commita5403d89c2ba8a650798cf29f2b84282f25a08a7 (patch)
treef85f196cbf43dac47d72521176d26c1f2d08eece /sys/gnu/fs/xfs/xfs_attr.c
parent55e41f7b78653de1bd2f8c4673126a703c346735 (diff)
downloadFreeBSD-src-a5403d89c2ba8a650798cf29f2b84282f25a08a7.zip
FreeBSD-src-a5403d89c2ba8a650798cf29f2b84282f25a08a7.tar.gz
Cope with -Wundef. This means including xfs_macros.h early in a few more
files and changing #if XXXKAN -> #ifdef XXXKAN. # this is just compile tested, since I don't have xfs partitions.
Diffstat (limited to 'sys/gnu/fs/xfs/xfs_attr.c')
-rw-r--r--sys/gnu/fs/xfs/xfs_attr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/gnu/fs/xfs/xfs_attr.c b/sys/gnu/fs/xfs/xfs_attr.c
index 0399c45..edf26d4 100644
--- a/sys/gnu/fs/xfs/xfs_attr.c
+++ b/sys/gnu/fs/xfs/xfs_attr.c
@@ -2560,7 +2560,7 @@ attr_user_capable(
struct xfs_vnode *vp,
cred_t *cred)
{
-#if XXXKAN
+#ifdef XXXKAN
struct inode *inode = LINVFS_GET_IP(vp);
if (IS_IMMUTABLE(inode) || IS_APPEND(inode))
@@ -2580,7 +2580,7 @@ attr_trusted_capable(
struct xfs_vnode *vp,
cred_t *cred)
{
-#if XXXKAN
+#ifdef XXXKAN
struct inode *inode = LINVFS_GET_IP(vp);
if (IS_IMMUTABLE(inode) || IS_APPEND(inode))
@@ -2613,7 +2613,7 @@ attr_system_set(
if (!namesp)
return -EOPNOTSUPP;
error = namesp->attr_set(vp, name, data, size, xflags);
-#if XXXKAN
+#ifdef XXXKAN
if (!error)
error = vn_revalidate(vp);
#endif
OpenPOWER on IntegriCloud