Permalink
Browse files

clang: fix some more warnings in xattr code

  • Loading branch information...
pstorz committed Oct 11, 2018
1 parent 0154107 commit f3cb999e7979507547b9fc6ba72b9dd5b64f8630
Showing with 5 additions and 5 deletions.
  1. +1 −1 core/src/filed/fd_plugins.cc
  2. +3 −3 core/src/findlib/xattr.cc
  3. +1 −1 core/src/plugins/filed/example-plugin-fd.cc
@@ -1593,7 +1593,7 @@ bxattr_exit_code PluginParseXattrStreams(JobControlRecord *jcr,
#if defined(HAVE_XATTR)
plugin = (Plugin *)jcr->plugin_ctx->plugin;
if (PlugFunc(plugin)->setXattr != NULL) {
xattr_t *current_xattr;
xattr_t *current_xattr = nullptr;
struct xattr_pkt xp;
xattr_value_list = New(alist(10, not_owned_by_alist));
@@ -141,7 +141,7 @@ bxattr_exit_code SendXattrStream(JobControlRecord *jcr,
*/
void XattrDropInternalTable(alist *xattr_value_list)
{
xattr_t *current_xattr;
xattr_t *current_xattr = nullptr;
/*
* Walk the list of xattrs and free allocated memory on traversing.
@@ -183,7 +183,7 @@ uint32_t SerializeXattrStream(JobControlRecord *jcr,
uint32_t expected_serialize_len,
alist *xattr_value_list)
{
xattr_t *current_xattr;
xattr_t *current_xattr = nullptr;
ser_declare;
/*
@@ -1913,7 +1913,7 @@ static bxattr_exit_code bsd_parse_xattr_streams(JobControlRecord *jcr,
char *content,
uint32_t content_length)
{
xattr_t *current_xattr;
xattr_t *current_xattr = nullptr;
alist *xattr_value_list;
int current_attrnamespace, cnt;
char *attrnamespace, *attrname;
@@ -201,7 +201,7 @@ static bRC handlePluginEvent(bpContext *ctx, bEvent *event, void *value)
printf("plugin: BackupEnd\n");
break;
case bEventLevel:
printf("plugin: JobLevel=%c %ld\n", (int64_t)value, (int64_t)value);
printf("plugin: JobLevel=%c %ld\n",(int)(int64_t)value, (int64_t)value);
break;
case bEventSince:
printf("plugin: since=%ld\n", (int64_t)value);

0 comments on commit f3cb999

Please sign in to comment.