]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Fixed unused variable warnings in free_stat_x.
authorWayne Davison <wayned@samba.org>
Sun, 19 May 2013 21:31:27 +0000 (21:31 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 19 May 2013 22:01:29 +0000 (22:01 +0000)
ifuncs.h

index e823e95dd1c70a238dd4a2818c6d40ebcb2f2d9c..c0e45bbe8c306fc99cea93075ea27d69a8168465 100644 (file)
--- 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
 }