qulogic/gplugin

Clean up a compiler warning with a typecast
feature/random-cleanups
2019-07-17, Gary Kramlich
636db4dd6064
Parents 4d2669c22aee
Children 88ced24629f1
Clean up a compiler warning with a typecast
--- a/gplugin/tests/test-plugin-info.c Wed Jul 17 07:54:02 2019 -0500
+++ b/gplugin/tests/test-plugin-info.c Wed Jul 17 07:54:26 2019 -0500
@@ -51,7 +51,7 @@
gchar **tmp = NULL;
/* make sure our arrarys are the same length */
- g_assert_cmpuint(g_strv_length(got), ==, g_strv_length(expected));
+ g_assert_cmpuint(g_strv_length(got), ==, g_strv_length((gchar **)expected));
/* now walk through until expected[i] is null comparing each entry */
for(i = 0; expected[i]; i++)
@@ -61,7 +61,7 @@
tmp = func(info);
/* verify that the accessor returned the proper value as well */
- g_assert_cmpuint(g_strv_length(tmp), ==, g_strv_length(expected));
+ g_assert_cmpuint(g_strv_length(tmp), ==, g_strv_length((gchar **)expected));
for(i = 0; expected[i]; i++)
g_assert_cmpstr(tmp[i], ==, expected[i]);