core: Fix xattr API to conform to coding style
This commit is contained in:
1 parent
3c39a5bfa7
commit
72398ab62c
5 files changed
+29
-19
No files matched your search
@@ -2324,8 +2324,7 @@ stage_directory_to_mtree_internal (OstreeRepo *self,
|
||||
{
|
||||
if (!(modifier && modifier->skip_xattrs))
|
||||
{
|
||||
xattrs = ostree_get_xattrs_for_file (dir, error);
|
||||
if (!xattrs)
|
||||
if (!ostree_get_xattrs_for_file (dir, &xattrs, cancellable, error))
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -2394,8 +2393,7 @@ stage_directory_to_mtree_internal (OstreeRepo *self,
|
||||
|
||||
if (!(modifier && modifier->skip_xattrs))
|
||||
{
|
||||
xattrs = ostree_get_xattrs_for_file (child, error);
|
||||
if (!xattrs)
|
||||
if (!ostree_get_xattrs_for_file (child, &xattrs, cancellable, error))
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -3239,8 +3237,7 @@ ostree_repo_load_file (OstreeRepo *self,
|
||||
}
|
||||
if (out_xattrs)
|
||||
{
|
||||
ret_xattrs = ostree_get_xattrs_for_file (content_loose_path, error);
|
||||
if (!ret_xattrs)
|
||||
if (!ostree_get_xattrs_for_file (content_loose_path, &ret_xattrs, cancellable,error))
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user