summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorPatrick Gauvin <gauvin@hcs.ufl.edu>2016-06-26 12:54:34 -0400
committerChris Johns <chrisj@rtems.org>2018-02-08 14:21:13 +1100
commitdc746b50cadae8f367ed3da1b35682ab920e360f (patch)
tree35c3a0577edf290adaacda0b41ac400d92b16f1f /cpukit
parenta346408e4e3e3f4e1163404b12fdf20bd321cde8 (diff)
downloadrtems-dc746b50cadae8f367ed3da1b35682ab920e360f.tar.bz2
libdl: Fix dlerror return type
POSIX specifies char *, not const char * Updates #2747
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libdl/dlfcn.c2
-rw-r--r--cpukit/libdl/dlfcn.h2
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'. */