mirror of
https://github.com/postgres/postgres.git
synced 2025-05-09 18:21:05 +03:00
Fix return type
This commit is contained in:
parent
bea3b8ea35
commit
12b401f739
@ -3,9 +3,10 @@
|
||||
* available with a PostgreSQL-compatible license. Kudos Wilfredo
|
||||
* Sánchez <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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user