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:
Konstantin Belousov 2021-04-05 07:14:39 +03:00
parent 34ca6025dd
commit 93c14c55ec

View File

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