mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
libdl: Fix dlerror return type
POSIX specifies char *, not const char * Updates #2747
This commit is contained in:
committed by
Chris Johns
parent
a346408e4e
commit
dc746b50ca
@@ -126,7 +126,7 @@ dlsym (void* handle, const char *symbol)
|
|||||||
return symval;
|
return symval;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char*
|
char*
|
||||||
dlerror (void)
|
dlerror (void)
|
||||||
{
|
{
|
||||||
static char msg[64];
|
static char msg[64];
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ int dladdr(void * __restrict, Dl_info * __restrict);
|
|||||||
int dlctl(void *, int, void *);
|
int dlctl(void *, int, void *);
|
||||||
#endif
|
#endif
|
||||||
int dlinfo(void *, int, void *);
|
int dlinfo(void *, int, void *);
|
||||||
const char *dlerror(void);
|
char *dlerror(void);
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
/* Values for dlopen `mode'. */
|
/* Values for dlopen `mode'. */
|
||||||
|
|||||||
Reference in New Issue
Block a user