]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
const up ERR_str_libraries
authorCaolán McNamara <caolan.mcnamara@collabora.com>
Sun, 13 Jul 2025 19:21:19 +0000 (20:21 +0100)
committerPauli <ppzgs1@gmail.com>
Tue, 15 Jul 2025 02:32:27 +0000 (12:32 +1000)
CLA: trivial

move this symbol out of the .data section

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28029)

crypto/err/err.c

index 167b66ed6bf99d9945375c80cc7e573004f24fec..e9228d66a3cb3bf1ecfa3367f37689dbff619fe3 100644 (file)
@@ -35,7 +35,7 @@ static int err_load_strings(const ERR_STRING_DATA *str);
 #endif
 
 #ifndef OPENSSL_NO_ERR
-static ERR_STRING_DATA ERR_str_libraries[] = {
+static const ERR_STRING_DATA ERR_str_libraries[] = {
     {ERR_PACK(ERR_LIB_NONE, 0, 0), "unknown library"},
     {ERR_PACK(ERR_LIB_SYS, 0, 0), "system library"},
     {ERR_PACK(ERR_LIB_BN, 0, 0), "bignum routines"},