From 560a3a0a6e037250ae41d9a6c8d114eeeca12197 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Sun, 31 Mar 2002 10:09:43 +0000 Subject: [PATCH] hide some more symbols that OSX complains about --- dynaload.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/dynaload.c b/dynaload.c index 4ebd3c08..f093f6f4 100644 --- a/dynaload.c +++ b/dynaload.c @@ -270,10 +270,8 @@ static char *dlopen(char *path, int mode /* mode is ignored */) return handle; } -void * -dlsym(handle, symbol) - void *handle; - char *symbol; +static void * +dlsym(void *handle, char *symbol) { void *addr; @@ -290,16 +288,14 @@ dlsym(handle, symbol) return addr; } -int dlclose(handle) /* stub only */ - void *handle; +static int dlclose(void *handle) /* stub only */ { return 0; } -char *dlerror(handle) /* stub only */ - void *handle; +static char *dlerror(void *handle) /* stub only */ { - printf("Error occured\n"); + printf("Error occurred\n"); return dl_error; } -- 2.39.5