From ca684b6e1c430d2b7df0510a65fb42e40caa37bb Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 1 Sep 2009 13:58:55 +0200 Subject: [PATCH] Eliminate xattr.c compiler warning --- bacula/src/filed/xattr.c | 16 ++++++++-------- bacula/technotes | 2 ++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/bacula/src/filed/xattr.c b/bacula/src/filed/xattr.c index 972a7e65cc..b8b6199299 100644 --- a/bacula/src/filed/xattr.c +++ b/bacula/src/filed/xattr.c @@ -131,20 +131,20 @@ static bxattr_exit_code send_xattr_stream(JCR *jcr, int stream) */ #if defined(HAVE_DARWIN_OS) static int os_default_xattr_streams[1] = { STREAM_XATTR_DARWIN }; -static char *xattr_acl_skiplist[2] = { "com.apple.system.Security", NULL }; -static char *xattr_skiplist[3] = { "com.apple.system.extendedsecurity", "com.apple.ResourceFork", NULL }; +static const char *xattr_acl_skiplist[2] = { "com.apple.system.Security", NULL }; +static const char *xattr_skiplist[3] = { "com.apple.system.extendedsecurity", "com.apple.ResourceFork", NULL }; #elif defined(HAVE_FREEBSD_OS) static int os_default_xattr_streams[1] = { STREAM_XATTR_FREEBSD }; -static char *xattr_acl_skiplist[1] = { NULL }; -static char *xattr_skiplist[1] = { NULL }; +static const char *xattr_acl_skiplist[1] = { NULL }; +static const char *xattr_skiplist[1] = { NULL }; #elif defined(HAVE_LINUX_OS) static int os_default_xattr_streams[1] = { STREAM_XATTR_LINUX }; -static char *xattr_acl_skiplist[2] = { "system.posix_acl_access", NULL }; -static char *xattr_skiplist[1] = { NULL }; +static const char *xattr_acl_skiplist[2] = { "system.posix_acl_access", NULL }; +static const char *xattr_skiplist[1] = { NULL }; #elif defined(HAVE_NETBSD_OS) static int os_default_xattr_streams[1] = { STREAM_XATTR_NETBSD }; -static char *xattr_acl_skiplist[1] = { NULL }; -static char *xattr_skiplist[1] = { NULL }; +static const char *xattr_acl_skiplist[1] = { NULL }; +static const char *xattr_skiplist[1] = { NULL }; #endif /* diff --git a/bacula/technotes b/bacula/technotes index 96ef4d6a46..c1e2b4fedb 100644 --- a/bacula/technotes +++ b/bacula/technotes @@ -2,6 +2,8 @@ General: +01Sep09 +kes Eliminate xattr.c compiler warning 31Aug09 mvw Exclude OSX resource forks from saving using the xattr code Exclude OSX acl data from saving using the xattr code when -- 2.39.5