aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-04-05 04:14:39 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-04-09 20:46:23 +0000
commit93c14c55ec0da311dc09c1c8c1c7ecd5f2fae51a (patch)
tree0b5157d8a42f80dbc01f1ecf755c261749f2b472 /lib/libc
parent34ca6025ddfea9899024eb6e7617091c5bc5149a (diff)
downloadsrc-93c14c55ec0da311dc09c1c8c1c7ecd5f2fae51a.tar.gz
src-93c14c55ec0da311dc09c1c8c1c7ecd5f2fae51a.zip
libc: constify dummy error message string for dlfcn
Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D29623
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/dlfcn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c
index 395a6d9402e8..6047f7ddd4d7 100644
--- a/lib/libc/gen/dlfcn.c
+++ b/lib/libc/gen/dlfcn.c
@@ -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