[libgit2-glib] Fix const warning in g_free



commit 0c64df38fa27fe55186c51369f2d37f8597c9aca
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Tue Jun 24 15:01:28 2014 +0200

    Fix const warning in g_free

 libgit2-glib/ggit-index-entry.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgit2-glib/ggit-index-entry.c b/libgit2-glib/ggit-index-entry.c
index b997c79..89d7d74 100644
--- a/libgit2-glib/ggit-index-entry.c
+++ b/libgit2-glib/ggit-index-entry.c
@@ -126,7 +126,7 @@ ggit_index_entry_unref (GgitIndexEntry *entry)
        {
                if (entry->owned)
                {
-                       g_free (entry->entry->path);
+                       g_free ((gchar *)entry->entry->path);
                        g_slice_free (git_index_entry, entry->entry);
                }
 
@@ -656,7 +656,7 @@ ggit_index_entry_set_path (GgitIndexEntry *entry,
 
        if (entry->entry->path)
        {
-               g_free (entry->entry->path);
+               g_free ((gchar *)entry->entry->path);
                entry->entry->path = NULL;
        }
 


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