aboutsummaryrefslogtreecommitdiff
path: root/dlfcn/defaultmod1.c
diff options
context:
space:
mode:
Diffstat (limited to 'dlfcn/defaultmod1.c')
-rw-r--r--dlfcn/defaultmod1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dlfcn/defaultmod1.c b/dlfcn/defaultmod1.c
index 9f330b7..47d229d 100644
--- a/dlfcn/defaultmod1.c
+++ b/dlfcn/defaultmod1.c
@@ -9,9 +9,9 @@ found_in_mod1 (void)
}
-extern int test_in_mod1 (void *mainp);
+extern int test_in_mod1 (int (*mainp)(int, char **));
int
-test_in_mod1 (void *mainp)
+test_in_mod1 (int (*mainp)(int, char **))
{
int (*ifp) (void);
void *p;
@@ -24,7 +24,7 @@ test_in_mod1 (void *mainp)
printf ("%s: main not found\n", __FILE__);
result = 1;
}
- else if (p != mainp)
+ else if ((int (*)(int, char **))p != mainp)
{
printf ("%s: wrong address returned for main\n", __FILE__);
result = 1;