[ostree] libostree: Fix compiler warning
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] libostree: Fix compiler warning
- Date: Tue, 10 Sep 2013 16:26:50 +0000 (UTC)
commit 27b46cb45cc4aee4e6cc75fdbd5043304d7024f8
Author: Colin Walters <walters verbum org>
Date: Tue Sep 10 12:25:13 2013 -0400
libostree: Fix compiler warning
src/libostree/ostree-repo.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c
index 0459fff..28ec7ff 100644
--- a/src/libostree/ostree-repo.c
+++ b/src/libostree/ostree-repo.c
@@ -1415,21 +1415,21 @@ ostree_repo_read_commit (OstreeRepo *self,
GError **error)
{
gboolean ret = FALSE;
- gs_unref_object OstreeRepoFile *ret_root = NULL;
+ gs_unref_object GFile *ret_root = NULL;
gs_free char *resolved_commit = NULL;
if (!ostree_repo_resolve_rev (self, ref, FALSE, &resolved_commit, error))
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)
goto out;
- if (!ostree_repo_file_ensure_resolved (ret_root, error))
+ if (!ostree_repo_file_ensure_resolved ((OstreeRepoFile*)ret_root, error))
goto out;
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);
out:
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]