[libgit2-glib] Make elements in strarray convert const



commit d83c2faa96d91756e1adb33e537e4df6673a5ecf
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Tue Jun 24 19:22:23 2014 +0200

    Make elements in strarray convert const

 libgit2-glib/ggit-utils.c |    4 ++--
 libgit2-glib/ggit-utils.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgit2-glib/ggit-utils.c b/libgit2-glib/ggit-utils.c
index a2aba08..c08cf17 100644
--- a/libgit2-glib/ggit-utils.c
+++ b/libgit2-glib/ggit-utils.c
@@ -118,8 +118,8 @@ ggit_utils_get_str_array_from_git_strarray (git_strarray *gitarray)
 }
 
 void
-ggit_utils_get_git_strarray_from_str_array (const gchar  **array,
-                                            git_strarray  *gitarray)
+ggit_utils_get_git_strarray_from_str_array (const gchar * const *array,
+                                            git_strarray        *gitarray)
 {
        git_strarray fake_gitarray;
 
diff --git a/libgit2-glib/ggit-utils.h b/libgit2-glib/ggit-utils.h
index 477a570..a313641 100644
--- a/libgit2-glib/ggit-utils.h
+++ b/libgit2-glib/ggit-utils.h
@@ -39,8 +39,8 @@ gchar         **ggit_utils_get_str_array_from_git_strarray
 
 
 void            ggit_utils_get_git_strarray_from_str_array
-                                                      (const gchar  **array,
-                                                       git_strarray  *gitarray);
+                                                      (const gchar * const *array,
+                                                       git_strarray        *gitarray);
 
 G_END_DECLS
 


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