From 09ca0d15d31d93a5964a1db4c387879f31c22831 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 3 Jan 2009 08:53:59 -0800 Subject: Added init_stat_x() to avoid duplication of acl/xattr init code. --- ifuncs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ifuncs.h') diff --git a/ifuncs.h b/ifuncs.h index 0fe900a3..8c128d58 100644 --- a/ifuncs.h +++ b/ifuncs.h @@ -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 +} -- cgit v1.2.1