diff options
Diffstat (limited to 'src/backend/port')
-rw-r--r-- | src/backend/port/dynloader/darwin.c | 8 | ||||
-rw-r--r-- | src/backend/port/dynloader/darwin.h | 4 | ||||
-rw-r--r-- | src/backend/port/dynloader/hpux.c | 4 | ||||
-rw-r--r-- | src/backend/port/dynloader/hpux.h | 4 | ||||
-rw-r--r-- | src/backend/port/dynloader/linux.c | 4 |
5 files changed, 12 insertions, 12 deletions
diff --git a/src/backend/port/dynloader/darwin.c b/src/backend/port/dynloader/darwin.c index 18092cc759..93f19878f5 100644 --- a/src/backend/port/dynloader/darwin.c +++ b/src/backend/port/dynloader/darwin.c @@ -20,7 +20,7 @@ #ifdef HAVE_DLOPEN void * -pg_dlopen(char *filename) +pg_dlopen(const char *filename) { return dlopen(filename, RTLD_NOW | RTLD_GLOBAL); } @@ -32,7 +32,7 @@ pg_dlclose(void *handle) } PGFunction -pg_dlsym(void *handle, char *funcname) +pg_dlsym(void *handle, const char *funcname) { /* Do not prepend an underscore: see dlopen(3) */ return dlsym(handle, funcname); @@ -54,7 +54,7 @@ pg_dlerror(void) static NSObjectFileImageReturnCode cofiff_result = NSObjectFileImageFailure; void * -pg_dlopen(char *filename) +pg_dlopen(const char *filename) { NSObjectFileImage image; @@ -73,7 +73,7 @@ pg_dlclose(void *handle) } PGFunction -pg_dlsym(void *handle, char *funcname) +pg_dlsym(void *handle, const char *funcname) { NSSymbol symbol; char *symname = (char *) malloc(strlen(funcname) + 2); diff --git a/src/backend/port/dynloader/darwin.h b/src/backend/port/dynloader/darwin.h index 44a3bd6b82..292a31de13 100644 --- a/src/backend/port/dynloader/darwin.h +++ b/src/backend/port/dynloader/darwin.h @@ -2,7 +2,7 @@ #include "fmgr.h" -void *pg_dlopen(char *filename); -PGFunction pg_dlsym(void *handle, char *funcname); +void *pg_dlopen(const char *filename); +PGFunction pg_dlsym(void *handle, const char *funcname); void pg_dlclose(void *handle); char *pg_dlerror(void); diff --git a/src/backend/port/dynloader/hpux.c b/src/backend/port/dynloader/hpux.c index 5a0e40146d..5ab24f8fd9 100644 --- a/src/backend/port/dynloader/hpux.c +++ b/src/backend/port/dynloader/hpux.c @@ -26,7 +26,7 @@ #include "utils/dynamic_loader.h" void * -pg_dlopen(char *filename) +pg_dlopen(const char *filename) { /* * Use BIND_IMMEDIATE so that undefined symbols cause a failure return @@ -41,7 +41,7 @@ pg_dlopen(char *filename) } PGFunction -pg_dlsym(void *handle, char *funcname) +pg_dlsym(void *handle, const char *funcname) { PGFunction f; diff --git a/src/backend/port/dynloader/hpux.h b/src/backend/port/dynloader/hpux.h index 0a17454f2b..6c1b367e97 100644 --- a/src/backend/port/dynloader/hpux.h +++ b/src/backend/port/dynloader/hpux.h @@ -19,7 +19,7 @@ /* System includes */ #include "fmgr.h" -extern void *pg_dlopen(char *filename); -extern PGFunction pg_dlsym(void *handle, char *funcname); +extern void *pg_dlopen(const char *filename); +extern PGFunction pg_dlsym(void *handle, const char *funcname); extern void pg_dlclose(void *handle); extern char *pg_dlerror(void); diff --git a/src/backend/port/dynloader/linux.c b/src/backend/port/dynloader/linux.c index 38e19f7484..375ade32e5 100644 --- a/src/backend/port/dynloader/linux.c +++ b/src/backend/port/dynloader/linux.c @@ -29,7 +29,7 @@ #ifndef HAVE_DLOPEN void * -pg_dlopen(char *filename) +pg_dlopen(const char *filename) { #ifndef HAVE_DLD_H elog(ERROR, "dynamic load not supported"); @@ -101,7 +101,7 @@ pg_dlopen(char *filename) } PGFunction -pg_dlsym(void *handle, char *funcname) +pg_dlsym(void *handle, const char *funcname) { #ifndef HAVE_DLD_H return NULL; |