Commit 12b401f7 authored by Peter Eisentraut's avatar Peter Eisentraut

Fix return type

parent bea3b8ea
...@@ -3,9 +3,10 @@ ...@@ -3,9 +3,10 @@
* available with a PostgreSQL-compatible license. Kudos Wilfredo * available with a PostgreSQL-compatible license. Kudos Wilfredo
* Snchez <wsanchez@apple.com>. * Snchez <wsanchez@apple.com>.
* *
* $Header: /cvsroot/pgsql/src/backend/port/dynloader/darwin.c,v 1.2 2000/11/09 19:00:50 petere Exp $ * $Header: /cvsroot/pgsql/src/backend/port/dynloader/darwin.c,v 1.3 2000/11/14 21:26:21 petere Exp $
*/ */
#include "postgres.h"
#include <mach-o/dyld.h> #include <mach-o/dyld.h>
#include "dynloader.h" #include "dynloader.h"
...@@ -25,7 +26,7 @@ void pg_dlclose(void *handle) ...@@ -25,7 +26,7 @@ void pg_dlclose(void *handle)
return; return;
} }
PGFunction *pg_dlsym(void *handle, const char *funcname) PGFunction pg_dlsym(void *handle, const char *funcname)
{ {
NSSymbol symbol; NSSymbol symbol;
char *symname = (char*)malloc(strlen(funcname)+2); char *symname = (char*)malloc(strlen(funcname)+2);
...@@ -33,7 +34,7 @@ PGFunction *pg_dlsym(void *handle, const char *funcname) ...@@ -33,7 +34,7 @@ PGFunction *pg_dlsym(void *handle, const char *funcname)
sprintf(symname, "_%s", funcname); sprintf(symname, "_%s", funcname);
symbol = NSLookupAndBindSymbol(symname); symbol = NSLookupAndBindSymbol(symname);
free(symname); free(symname);
return (PGFunction *) NSAddressOfSymbol(symbol); return (PGFunction) NSAddressOfSymbol(symbol);
} }
const char *pg_dlerror(void) const char *pg_dlerror(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment