From: Kern Sibbald Date: Tue, 1 Sep 2009 11:58:55 +0000 (+0200) Subject: Eliminate xattr.c compiler warning X-Git-Tag: Release-7.0.0~2636^2~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ca684b6e1c430d2b7df0510a65fb42e40caa37bb;p=bacula%2Fbacula Eliminate xattr.c compiler warning --- 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