]> git.sur5r.net Git - bacula/bacula/commitdiff
Eliminate xattr.c compiler warning
authorKern Sibbald <kern@sibbald.com>
Tue, 1 Sep 2009 11:58:55 +0000 (13:58 +0200)
committerKern Sibbald <kern@sibbald.com>
Tue, 1 Sep 2009 11:58:55 +0000 (13:58 +0200)
bacula/src/filed/xattr.c
bacula/technotes

index 972a7e65cc5efbd205c5d4b0234ee49384f8ce8a..b8b6199299db0fa46f314ce4e99703d636175484 100644 (file)
@@ -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
 
 /*
index 96ef4d6a46da343d316969e04afc6bb61348dd15..c1e2b4fedbda2f105bd6758539b10a4abed029e4 100644 (file)
@@ -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