libostree: Fix compiler warning

This commit is contained in:
Colin Walters 2013-09-10 12:25:13 -04:00
parent 4f236ebc1b
commit 27b46cb45c
1 changed files with 4 additions and 4 deletions

View File

@ -1415,21 +1415,21 @@ ostree_repo_read_commit (OstreeRepo *self,
GError **error) GError **error)
{ {
gboolean ret = FALSE; gboolean ret = FALSE;
gs_unref_object OstreeRepoFile *ret_root = NULL; gs_unref_object GFile *ret_root = NULL;
gs_free char *resolved_commit = NULL; gs_free char *resolved_commit = NULL;
if (!ostree_repo_resolve_rev (self, ref, FALSE, &resolved_commit, error)) if (!ostree_repo_resolve_rev (self, ref, FALSE, &resolved_commit, error))
goto out; goto out;
ret_root = _ostree_repo_file_new_for_commit (self, resolved_commit, error); ret_root = (GFile*) _ostree_repo_file_new_for_commit (self, resolved_commit, error);
if (!ret_root) if (!ret_root)
goto out; goto out;
if (!ostree_repo_file_ensure_resolved (ret_root, error)) if (!ostree_repo_file_ensure_resolved ((OstreeRepoFile*)ret_root, error))
goto out; goto out;
ret = TRUE; ret = TRUE;
ot_transfer_out_value(out_root, (GFile **) &ret_root); ot_transfer_out_value(out_root, &ret_root);
ot_transfer_out_value(out_commit, &resolved_commit); ot_transfer_out_value(out_commit, &resolved_commit);
out: out:
return ret; return ret;