libc: constify dummy error message string for dlfcn
Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D29623
This commit is contained in:
parent
34ca6025dd
commit
93c14c55ec
@ -46,7 +46,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include "libc_private.h"
|
||||
#include "reentrant.h"
|
||||
|
||||
static char sorry[] = "Service unavailable";
|
||||
static const char sorry[] = "Service unavailable";
|
||||
|
||||
void _rtld_thread_init(void *);
|
||||
void _rtld_atfork_pre(int *);
|
||||
@ -91,7 +91,7 @@ char *
|
||||
dlerror(void)
|
||||
{
|
||||
|
||||
return (sorry);
|
||||
return (__DECONST(char *, sorry));
|
||||
}
|
||||
|
||||
#pragma weak dllockinit
|
||||
|
Loading…
Reference in New Issue
Block a user