summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2014-10-21 11:22:51 +0200
committerColin Walters <walters@verbum.org>2014-10-21 16:18:30 -0400
commit26bdfae5bcbf7788bee759f48765839dd3f9513b (patch)
treee1b4e5693607bbb76941a1286eab0b90328b0445
parent5fb8bb955e2b762e0d462d0acd0924cb842f88ab (diff)
downloadostree-26bdfae5bcbf7788bee759f48765839dd3f9513b.tar.gz
make ostree_cmd__private__ ret value const
-rw-r--r--src/libostree/ostree-cmdprivate.c2
-rw-r--r--src/libostree/ostree-cmdprivate.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libostree/ostree-cmdprivate.c b/src/libostree/ostree-cmdprivate.c
index 3d6a1941..2bbfe332 100644
--- a/src/libostree/ostree-cmdprivate.c
+++ b/src/libostree/ostree-cmdprivate.c
@@ -40,7 +40,7 @@ impl_ostree_generate_grub2_config (OstreeSysroot *sysroot, int bootversion, int
* Do not call this function; it is used to share private API between
* the OSTree commandline and the library.
*/
-OstreeCmdPrivateVTable *
+const OstreeCmdPrivateVTable *
ostree_cmd__private__ (void)
{
static OstreeCmdPrivateVTable table = {
diff --git a/src/libostree/ostree-cmdprivate.h b/src/libostree/ostree-cmdprivate.h
index ac2972a6..c1a48fea 100644
--- a/src/libostree/ostree-cmdprivate.h
+++ b/src/libostree/ostree-cmdprivate.h
@@ -28,7 +28,7 @@ typedef struct {
gboolean (* ostree_generate_grub2_config) (OstreeSysroot *sysroot, int bootversion, int target_fd, GCancellable *cancellable, GError **error);
} OstreeCmdPrivateVTable;
-OstreeCmdPrivateVTable *
+const OstreeCmdPrivateVTable *
ostree_cmd__private__ (void);
G_END_DECLS