- Remove const'ness from dlerror(3) prototype, for consistency with POSIX.
Approved by: cognet MFC after: 1 week
This commit is contained in:
parent
c2bce7cc39
commit
071ab531db
@ -113,8 +113,7 @@ typedef struct dl_serinfo {
|
||||
__BEGIN_DECLS
|
||||
/* XSI functions first. */
|
||||
int dlclose(void *);
|
||||
const char *
|
||||
dlerror(void);
|
||||
char *dlerror(void);
|
||||
void *dlopen(const char *, int);
|
||||
void *dlsym(void * __restrict, const char * __restrict);
|
||||
|
||||
|
@ -34,7 +34,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <link.h>
|
||||
#include <stddef.h>
|
||||
|
||||
static const char sorry[] = "Service unavailable";
|
||||
static char sorry[] = "Service unavailable";
|
||||
|
||||
/*
|
||||
* For ELF, the dynamic linker directly resolves references to its
|
||||
@ -69,7 +69,7 @@ dlclose(void *handle)
|
||||
}
|
||||
|
||||
#pragma weak dlerror
|
||||
const char *
|
||||
char *
|
||||
dlerror(void)
|
||||
{
|
||||
return sorry;
|
||||
|
@ -52,7 +52,7 @@
|
||||
.Fn dlsym "void * restrict handle" "const char * restrict symbol"
|
||||
.Ft dlfunc_t
|
||||
.Fn dlfunc "void * restrict handle" "const char * restrict symbol"
|
||||
.Ft const char *
|
||||
.Ft char *
|
||||
.Fn dlerror "void"
|
||||
.Ft int
|
||||
.Fn dlclose "void *handle"
|
||||
|
@ -1961,7 +1961,7 @@ dlclose(void *handle)
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *
|
||||
char *
|
||||
dlerror(void)
|
||||
{
|
||||
char *msg = error_message;
|
||||
|
Loading…
Reference in New Issue
Block a user