From: Stefan Metzmacher Date: Fri, 22 Jul 2016 12:43:27 +0000 (+0200) Subject: xattrs: add const to empty_xattr X-Git-Tag: v3.1.3pre1~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac97bc14f623fe5027423aa0a6acd3a8c1124e99;p=thirdparty%2Frsync.git xattrs: add const to empty_xattr Part of a patchset for bug 5324. --- diff --git a/xattrs.c b/xattrs.c index 0658afbb..ed8c81bd 100644 --- a/xattrs.c +++ b/xattrs.c @@ -82,7 +82,7 @@ typedef struct { static size_t namebuf_len = 0; static char *namebuf = NULL; -static item_list empty_xattr = EMPTY_ITEM_LIST; +static const item_list empty_xattr = EMPTY_ITEM_LIST; static item_list rsync_xal_l = EMPTY_ITEM_LIST; static size_t prior_xattr_count = (size_t)-1; @@ -466,7 +466,7 @@ int send_xattr(int f, stat_x *sxp) * need so that send_xattr_request() can tell the sender about them. */ int xattr_diff(struct file_struct *file, stat_x *sxp, int find_all) { - item_list *lst = rsync_xal_l.items; + const item_list *lst = rsync_xal_l.items; rsync_xa *snd_rxa, *rec_rxa; int snd_cnt, rec_cnt; int cmp, same, xattrs_equal = 1;