diff options
author | Johan Dahlin <johan@src.gnome.org> | 2008-11-14 12:07:53 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-11-14 12:07:53 +0000 |
commit | 2b045c2b469de00e44883a39dacf5ca91962da45 (patch) | |
tree | f907f5734f3b9f5ce3d0afe44007c0dcf35deefa | |
parent | 795aa75e9cad4d3dcc77e1d5daf9cd5b68bb2360 (diff) | |
download | gobject-introspection-2b045c2b469de00e44883a39dacf5ca91962da45.tar.gz |
const char->char to avoid leaking the return value, as pointed out by Tommi
svn path=/trunk/; revision=925
-rw-r--r-- | tests/everything/everything.c | 2 | ||||
-rw-r--r-- | 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 6441e930..86296962 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 d173ac3f..e855dfb5 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 */ |