- 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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205606
@ -113,8 +113,7 @@ typedef struct dl_serinfo {
|
|||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
/* XSI functions first. */
|
/* XSI functions first. */
|
||||||
int dlclose(void *);
|
int dlclose(void *);
|
||||||
const char *
|
char *dlerror(void);
|
||||||
dlerror(void);
|
|
||||||
void *dlopen(const char *, int);
|
void *dlopen(const char *, int);
|
||||||
void *dlsym(void * __restrict, const char * __restrict);
|
void *dlsym(void * __restrict, const char * __restrict);
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <link.h>
|
#include <link.h>
|
||||||
#include <stddef.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
|
* For ELF, the dynamic linker directly resolves references to its
|
||||||
@ -69,7 +69,7 @@ dlclose(void *handle)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#pragma weak dlerror
|
#pragma weak dlerror
|
||||||
const char *
|
char *
|
||||||
dlerror(void)
|
dlerror(void)
|
||||||
{
|
{
|
||||||
return sorry;
|
return sorry;
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
.Fn dlsym "void * restrict handle" "const char * restrict symbol"
|
.Fn dlsym "void * restrict handle" "const char * restrict symbol"
|
||||||
.Ft dlfunc_t
|
.Ft dlfunc_t
|
||||||
.Fn dlfunc "void * restrict handle" "const char * restrict symbol"
|
.Fn dlfunc "void * restrict handle" "const char * restrict symbol"
|
||||||
.Ft const char *
|
.Ft char *
|
||||||
.Fn dlerror "void"
|
.Fn dlerror "void"
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn dlclose "void *handle"
|
.Fn dlclose "void *handle"
|
||||||
|
@ -1961,7 +1961,7 @@ dlclose(void *handle)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *
|
char *
|
||||||
dlerror(void)
|
dlerror(void)
|
||||||
{
|
{
|
||||||
char *msg = error_message;
|
char *msg = error_message;
|
||||||
|
Loading…
Reference in New Issue
Block a user