[libgit2-glib] Remove const from getting native blame options



commit f17426180cc79d853ba811198b65b9b5aa1d23ea
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Mon Nov 25 12:50:38 2013 +0100

    Remove const from getting native blame options

 libgit2-glib/ggit-blame-options.c |    4 ++--
 libgit2-glib/ggit-blame-options.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgit2-glib/ggit-blame-options.c b/libgit2-glib/ggit-blame-options.c
index 121b028..45b1ef9 100644
--- a/libgit2-glib/ggit-blame-options.c
+++ b/libgit2-glib/ggit-blame-options.c
@@ -29,7 +29,7 @@ struct _GgitBlameOptions
 G_DEFINE_BOXED_TYPE (GgitBlameOptions, ggit_blame_options,
                      ggit_blame_options_copy, ggit_blame_options_free);
 
-const git_blame_options *
+git_blame_options *
 _ggit_blame_options_get_blame_options (GgitBlameOptions *blame_options)
 {
        /* NULL is common for blame_options as it specifies to use the default
@@ -40,7 +40,7 @@ _ggit_blame_options_get_blame_options (GgitBlameOptions *blame_options)
                return NULL;
        }
 
-       return (const git_blame_options *)&blame_options->blame_options;
+       return &blame_options->blame_options;
 }
 
 /**
diff --git a/libgit2-glib/ggit-blame-options.h b/libgit2-glib/ggit-blame-options.h
index c9f6b09..8c499d4 100644
--- a/libgit2-glib/ggit-blame-options.h
+++ b/libgit2-glib/ggit-blame-options.h
@@ -33,7 +33,7 @@ G_BEGIN_DECLS
 
 GType              ggit_blame_options_get_type           (void) G_GNUC_CONST;
 
-const git_blame_options *
+git_blame_options *
                   _ggit_blame_options_get_blame_options (GgitBlameOptions *blame_options);
 
 GgitBlameOptions *ggit_blame_options_copy               (GgitBlameOptions *blame_options);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]