diff options
author | Patrick Gauvin <gauvin@hcs.ufl.edu> | 2016-06-26 12:54:34 -0400 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2018-02-08 14:21:13 +1100 |
commit | dc746b50cadae8f367ed3da1b35682ab920e360f (patch) | |
tree | 35c3a0577edf290adaacda0b41ac400d92b16f1f | |
parent | libdl: dlerror return NULL when no error (diff) | |
download | rtems-dc746b50cadae8f367ed3da1b35682ab920e360f.tar.bz2 |
libdl: Fix dlerror return type
POSIX specifies char *, not const char *
Updates #2747
-rw-r--r-- | cpukit/libdl/dlfcn.c | 2 | ||||
-rw-r--r-- | cpukit/libdl/dlfcn.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libdl/dlfcn.c b/cpukit/libdl/dlfcn.c index 55ad97b753..c1f4a6a7b6 100644 --- a/cpukit/libdl/dlfcn.c +++ b/cpukit/libdl/dlfcn.c @@ -126,7 +126,7 @@ dlsym (void* handle, const char *symbol) return symval; } -const char* +char* dlerror (void) { static char msg[64]; diff --git a/cpukit/libdl/dlfcn.h b/cpukit/libdl/dlfcn.h index 1ac3ba1330..d71b515d8e 100644 --- a/cpukit/libdl/dlfcn.h +++ b/cpukit/libdl/dlfcn.h @@ -56,7 +56,7 @@ int dladdr(void * __restrict, Dl_info * __restrict); int dlctl(void *, int, void *); #endif int dlinfo(void *, int, void *); -const char *dlerror(void); +char *dlerror(void); __END_DECLS /* Values for dlopen `mode'. */ |