diff options
author | Wayne Davison <wayned@samba.org> | 2009-01-03 08:53:59 -0800 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2009-01-03 08:53:59 -0800 |
commit | 09ca0d15d31d93a5964a1db4c387879f31c22831 (patch) | |
tree | a966cbf8f02b8796d5c8d9f66e3c533ad97a4b41 /ifuncs.h | |
parent | c43c66125e8fd35896a358ccce9687ebcfe82dc5 (diff) | |
download | rsync-09ca0d15d31d93a5964a1db4c387879f31c22831.tar.gz |
Added init_stat_x() to avoid duplication of acl/xattr init code.
Diffstat (limited to 'ifuncs.h')
-rw-r--r-- | ifuncs.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -66,3 +66,14 @@ d_name(struct dirent *di) return di->d_name; #endif } + +static inline void +init_stat_x(stat_x *sx_p) +{ +#ifdef SUPPORT_ACLS + sx_p->acc_acl = sx_p->def_acl = NULL; +#endif +#ifdef SUPPORT_XATTRS + sx_p->xattr = NULL; +#endif +} |