summaryrefslogtreecommitdiff
path: root/ifuncs.h
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2013-05-19 21:31:27 +0000
committerWayne Davison <wayned@samba.org>2013-05-19 22:01:29 +0000
commit4442f8037bf32fb549dc7074af643d66710ab9d5 (patch)
treecfc2ef97578fae61d2f61b11cbaf94b4a0a4019e /ifuncs.h
parent333e3a9ff0bd3783b81542e112a63fdb3f4678b0 (diff)
downloadrsync-4442f8037bf32fb549dc7074af643d66710ab9d5.tar.gz
Fixed unused variable warnings in free_stat_x.
Diffstat (limited to 'ifuncs.h')
-rw-r--r--ifuncs.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ifuncs.h b/ifuncs.h
index e823e95d..c0e45bbe 100644
--- a/ifuncs.h
+++ b/ifuncs.h
@@ -89,13 +89,18 @@ init_stat_x(stat_x *sx_p)
static inline void
free_stat_x(stat_x *sx_p)
{
- extern int preserve_acls, preserve_xattrs;
#ifdef SUPPORT_ACLS
+ {
+ extern int preserve_acls;
if (preserve_acls)
free_acl(sx_p);
+ }
#endif
#ifdef SUPPORT_XATTRS
+ {
+ extern int preserve_xattrs;
if (preserve_xattrs)
free_xattr(sx_p);
+ }
#endif
}