mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue