const char->char to avoid leaking the return value, as pointed out by Tommi
authorJohan Dahlin <johan@src.gnome.org>
Fri, 14 Nov 2008 12:07:53 +0000 (12:07 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Fri, 14 Nov 2008 12:07:53 +0000 (12:07 +0000)
svn path=/trunk/; revision=925

tests/everything/everything.c
tests/everything/everything.h

index 6441e93..8629696 100644 (file)
@@ -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;
index d173ac3..e855dfb 100644 (file)
@@ -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 */