]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
xattrs: add const to empty_xattr
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Jul 2016 12:43:27 +0000 (14:43 +0200)
committerWayne Davison <wayned@samba.org>
Sun, 14 Aug 2016 20:54:34 +0000 (13:54 -0700)
Part of a patchset for bug 5324.

xattrs.c

index 0658afbbb861870859dc816170a2959e4ff54a9e..ed8c81bde27144339a6f61884fb19e26f0d036d8 100644 (file)
--- 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;