From d22b0bc45ead3d714d8f58be0467b4a2f06ec3b9 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 9 Aug 2009 16:09:48 +0200 Subject: [PATCH] Fix compiler warnings in acl and xattr code --- bacula/src/filed/acl.c | 4 ++-- bacula/src/filed/xattr.c | 2 +- bacula/technotes | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bacula/src/filed/acl.c b/bacula/src/filed/acl.c index 5a26b80abe..ca8313a2e3 100644 --- a/bacula/src/filed/acl.c +++ b/bacula/src/filed/acl.c @@ -592,7 +592,7 @@ static bacl_exit_code generic_build_acl_streams(JCR *jcr, FF_PKT *ff_pkt) static bacl_exit_code generic_parse_acl_streams(JCR *jcr, int stream) { - int cnt; + unsigned int cnt; switch (stream) { case STREAM_UNIX_ACCESS_ACL: @@ -1240,7 +1240,7 @@ bacl_exit_code build_acl_streams(JCR *jcr, FF_PKT *ff_pkt) bacl_exit_code parse_acl_streams(JCR *jcr, int stream) { - int cnt; + unsigned int cnt; switch (stream) { case STREAM_UNIX_ACCESS_ACL: diff --git a/bacula/src/filed/xattr.c b/bacula/src/filed/xattr.c index 20a438e64b..c444d62093 100644 --- a/bacula/src/filed/xattr.c +++ b/bacula/src/filed/xattr.c @@ -1868,7 +1868,7 @@ bxattr_exit_code build_xattr_streams(JCR *jcr, FF_PKT *ff_pkt) bxattr_exit_code parse_xattr_streams(JCR *jcr, int stream) { - int cnt; + unsigned int cnt; if (os_parse_xattr_streams) { /* diff --git a/bacula/technotes b/bacula/technotes index e5c7ea8c15..6a20153a9a 100644 --- a/bacula/technotes +++ b/bacula/technotes @@ -3,6 +3,7 @@ General: 09Aug09 +kes Fix compiler warnings in acl and xattr code kes Fix screw up with setting JobLevel and JobType kes Change version kes Apply Marco's acl/xattr rework code -- 2.39.5