diff options
author | Christian Hergert <chergert@redhat.com> | 2023-03-17 14:34:15 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2023-03-22 16:44:35 -0700 |
commit | ea348fc01180d135c4d3d59eede52e48ea906a43 (patch) | |
tree | d0af259c4bc6c5882042b9d1ce6eabc3d054cdcb /tests/libpeas | |
parent | c40bf394e6fd1cc7c077e79a2a8ba97cf3a1c608 (diff) | |
download | libpeas-ea348fc01180d135c4d3d59eede52e48ea906a43.tar.gz |
plugin-info: fix usage of char including constness
We use `const char * const *` for read-only char** arrays. Additionally,
stop using gchar and instead use char directly.
Diffstat (limited to 'tests/libpeas')
-rw-r--r-- | tests/libpeas/engine.c | 2 | ||||
-rw-r--r-- | tests/libpeas/plugin-info.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/libpeas/engine.c b/tests/libpeas/engine.c index a182978..cbc2b4e 100644 --- a/tests/libpeas/engine.c +++ b/tests/libpeas/engine.c @@ -249,7 +249,7 @@ static void test_engine_plugin_list (PeasEngine *engine) { GList *plugin_list; - const gchar **dependencies; + const gchar * const *dependencies; gint builtin_index, loadable_index, two_deps_index; PeasPluginInfo *builtin_info, *loadable_info, *two_deps_info; diff --git a/tests/libpeas/plugin-info.c b/tests/libpeas/plugin-info.c index 65c4688..75a58d3 100644 --- a/tests/libpeas/plugin-info.c +++ b/tests/libpeas/plugin-info.c @@ -62,7 +62,7 @@ test_plugin_info_verify_full_info (PeasEngine *engine) { PeasPluginInfo *info; GError *error = NULL; - const gchar **authors; + const gchar * const *authors; info = peas_engine_get_plugin_info (engine, "full-info"); @@ -100,7 +100,7 @@ test_plugin_info_verify_min_info (PeasEngine *engine) { PeasPluginInfo *info; GError *error = NULL; - const gchar **authors; + const gchar * const *authors; info = peas_engine_get_plugin_info (engine, "min-info"); |