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

Fix return type

parent bea3b8ea
......@@ -3,9 +3,10 @@
* available with a PostgreSQL-compatible license. Kudos Wilfredo
* 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 "dynloader.h"
......@@ -25,7 +26,7 @@ void pg_dlclose(void *handle)
return;
}
PGFunction *pg_dlsym(void *handle, const char *funcname)
PGFunction pg_dlsym(void *handle, const char *funcname)
{
NSSymbol symbol;
char *symname = (char*)malloc(strlen(funcname)+2);
......@@ -33,7 +34,7 @@ PGFunction *pg_dlsym(void *handle, const char *funcname)
sprintf(symname, "_%s", funcname);
symbol = NSLookupAndBindSymbol(symname);
free(symname);
return (PGFunction *) NSAddressOfSymbol(symbol);
return (PGFunction) NSAddressOfSymbol(symbol);
}
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