]> git.imager.perl.org - imager.git/commitdiff
hide some more symbols that OSX complains about
authorTony Cook <tony@develop=help.com>
Sun, 31 Mar 2002 10:09:43 +0000 (10:09 +0000)
committerTony Cook <tony@develop=help.com>
Sun, 31 Mar 2002 10:09:43 +0000 (10:09 +0000)
dynaload.c

index 4ebd3c08663a92c8ac59fcafd792aed159493809..f093f6f48222d2245e5652853a8aa848d3caeca8 100644 (file)
@@ -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; 
 }