MFC r205606

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

Approved by:	cognet
This commit is contained in:
Pietro Cerutti 2010-03-31 13:51:31 +00:00
parent 174479969c
commit 28f9173691
4 changed files with 5 additions and 6 deletions

View File

@ -117,8 +117,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;