summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2001-12-03 19:22:50 +0000
committerManish Singh <yosh@src.gnome.org>2001-12-03 19:22:50 +0000
commit88b9c7f902d352483f8696e2038a0dbdda56b615 (patch)
tree48ae070cf31e93f985db755c9d06b13092d38ea1 /tests
parentfdfddf0fdf84731083c2f6bc107c14447889e00f (diff)
downloadglib-88b9c7f902d352483f8696e2038a0dbdda56b615.tar.gz
glib-88b9c7f902d352483f8696e2038a0dbdda56b615.tar.bz2
glib-88b9c7f902d352483f8696e2038a0dbdda56b615.zip
g_module_symbol takes a gpointer *, not just a gpointer
2001-12-03 Manish Singh <yosh@gimp.org> * tests/module-test.c: g_module_symbol takes a gpointer *, not just a gpointer
Diffstat (limited to 'tests')
-rw-r--r--tests/module-test.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/module-test.c b/tests/module-test.c
index f77235b25..ba013b426 100644
--- a/tests/module-test.c
+++ b/tests/module-test.c
@@ -95,7 +95,7 @@ main (int arg,
if (!module_self)
g_error ("error: %s", g_module_error ());
- if (!g_module_symbol (module_self, "g_module_close", (gpointer) &f_self))
+ if (!g_module_symbol (module_self, "g_module_close", (gpointer *) &f_self))
g_error ("error: %s", g_module_error ());
module_a = g_module_open (plugin_a, G_MODULE_BIND_LAZY);
@@ -109,21 +109,21 @@ main (int arg,
/* get plugin state vars */
if (!g_module_symbol (module_a, "gplugin_a_state",
- (gpointer) &gplugin_a_state))
+ (gpointer *) &gplugin_a_state))
g_error ("error: %s", g_module_error ());
if (!g_module_symbol (module_b, "gplugin_b_state",
- (gpointer) &gplugin_b_state))
+ (gpointer *) &gplugin_b_state))
g_error ("error: %s", g_module_error ());
test_states (NULL, NULL, "check-init");
/* get plugin specific symbols and call them
*/
- if (!g_module_symbol (module_a, "gplugin_a_func", (gpointer) &f_a))
+ if (!g_module_symbol (module_a, "gplugin_a_func", (gpointer *) &f_a))
g_error ("error: %s", g_module_error ());
test_states (NULL, NULL, NULL);
- if (!g_module_symbol (module_b, "gplugin_b_func", (gpointer) &f_b))
+ if (!g_module_symbol (module_b, "gplugin_b_func", (gpointer *) &f_b))
g_error ("error: %s", g_module_error ());
test_states (NULL, NULL, NULL);
@@ -136,15 +136,15 @@ main (int arg,
/* get and call globally clashing functions
*/
- if (!g_module_symbol (module_self, "g_clash_func", (gpointer) &f_self))
+ if (!g_module_symbol (module_self, "g_clash_func", (gpointer *) &f_self))
g_error ("error: %s", g_module_error ());
test_states (NULL, NULL, NULL);
- if (!g_module_symbol (module_a, "g_clash_func", (gpointer) &f_a))
+ if (!g_module_symbol (module_a, "g_clash_func", (gpointer *) &f_a))
g_error ("error: %s", g_module_error ());
test_states (NULL, NULL, NULL);
- if (!g_module_symbol (module_b, "g_clash_func", (gpointer) &f_b))
+ if (!g_module_symbol (module_b, "g_clash_func", (gpointer *) &f_b))
g_error ("error: %s", g_module_error ());
test_states (NULL, NULL, NULL);
@@ -159,11 +159,11 @@ main (int arg,
/* get and call clashing plugin functions */
- if (!g_module_symbol (module_a, "gplugin_clash_func", (gpointer) &f_a))
+ if (!g_module_symbol (module_a, "gplugin_clash_func", (gpointer *) &f_a))
g_error ("error: %s", g_module_error ());
test_states (NULL, NULL, NULL);
- if (!g_module_symbol (module_b, "gplugin_clash_func", (gpointer) &f_b))
+ if (!g_module_symbol (module_b, "gplugin_clash_func", (gpointer *) &f_b))
g_error ("error: %s", g_module_error ());
test_states (NULL, NULL, NULL);
@@ -177,7 +177,7 @@ main (int arg,
/* call gmodule function from A */
- if (!g_module_symbol (module_a, "gplugin_a_module_func", (gpointer) &gmod_f))
+ if (!g_module_symbol (module_a, "gplugin_a_module_func", (gpointer *) &gmod_f))
g_error ("error: %s", g_module_error ());
test_states (NULL, NULL, NULL);