- Remove const'ness from dlerror(3) prototype, for consistency with POSIX.

Approved by:	cognet
MFC after:	1 week
This commit is contained in:
Pietro Cerutti 2010-03-24 15:59:51 +00:00
parent c2bce7cc39
commit 071ab531db
4 changed files with 5 additions and 6 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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"

View File

@ -1961,7 +1961,7 @@ dlclose(void *handle)
return 0;
}
const char *
char *
dlerror(void)
{
char *msg = error_message;