summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-repo-file.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2017-12-05 10:32:07 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-12-07 20:04:47 +0000
commit9917887a3f6b1a9a6e9741a992c009352c0504ac (patch)
treecef776143b92eb3417902f1b6930e0ff0e8fd432 /src/libostree/ostree-repo-file.c
parent9bb59511ae70b325d6d693f64bda976aed19e2e1 (diff)
downloadostree-9917887a3f6b1a9a6e9741a992c009352c0504ac.tar.gz
lib/repo-file: Add casts to appease GLib g_object_ref cast PR
This fixes the build with https://bugzilla.gnome.org/show_bug.cgi?id=790697 Closes: #1363 Approved by: jlebon
Diffstat (limited to 'src/libostree/ostree-repo-file.c')
-rw-r--r--src/libostree/ostree-repo-file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libostree/ostree-repo-file.c b/src/libostree/ostree-repo-file.c
index 7d6ac01e..6e19bff6 100644
--- a/src/libostree/ostree-repo-file.c
+++ b/src/libostree/ostree-repo-file.c
@@ -508,7 +508,7 @@ ostree_repo_file_get_parent (GFile *file)
{
OstreeRepoFile *self = OSTREE_REPO_FILE (file);
- return g_object_ref (self->parent);
+ return (GFile*)g_object_ref (self->parent);
}
static GFile *
@@ -621,7 +621,7 @@ ostree_repo_file_resolve_relative_path (GFile *file,
g_assert (*relative_path == '/');
if (strcmp (relative_path, "/") == 0)
- return g_object_ref (ostree_repo_file_get_root (self));
+ return (GFile*)g_object_ref (ostree_repo_file_get_root (self));
if (self->parent)
return ostree_repo_file_resolve_relative_path ((GFile*)ostree_repo_file_get_root (self),