From 2b045c2b469de00e44883a39dacf5ca91962da45 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Fri, 14 Nov 2008 12:07:53 +0000 Subject: [PATCH] const char->char to avoid leaking the return value, as pointed out by Tommi svn path=/trunk/; revision=925 --- tests/everything/everything.c | 2 +- tests/everything/everything.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/everything/everything.c b/tests/everything/everything.c index 6441e93..8629696 100644 --- a/tests/everything/everything.c +++ b/tests/everything/everything.c @@ -192,7 +192,7 @@ test_strv_in (char **arr) * @types: (array length=n_types): List of types * Return value: string representation of provided types * */ -const char * +char * test_array_gtype_in (int n_types, GType *types) { GString *string; diff --git a/tests/everything/everything.h b/tests/everything/everything.h index d173ac3..e855dfb 100644 --- a/tests/everything/everything.h +++ b/tests/everything/everything.h @@ -37,7 +37,7 @@ GSList *test_filename_return (void); /* array */ gboolean test_strv_in (char **arr); int test_array_int_in (int n_ints, int *ints); -const char *test_array_gtype_in (int n_types, GType *types); +char *test_array_gtype_in (int n_types, GType *types); char **test_strv_out (void); /* interface */ /* GList */ -- 2.7.4