Navigation Menu

Skip to content

Commit

Permalink
clang: fix some more warnings in xattr code
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Oct 11, 2018
1 parent f665aea commit edb87ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/src/filed/fd_plugins.cc
Expand Up @@ -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));
Expand Down
6 changes: 3 additions & 3 deletions core/src/findlib/xattr.cc
Expand Up @@ -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.
Expand Down Expand Up @@ -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;

/*
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/filed/example-plugin-fd.cc
Expand Up @@ -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);
Expand Down

0 comments on commit edb87ca

Please sign in to comment.