aboutsummaryrefslogtreecommitdiff
path: root/lib/com_err/com_err.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2023-06-26 22:56:52 +0000
committerCy Schubert <cy@FreeBSD.org>2023-06-26 22:56:52 +0000
commitb6a943f7197af1a5eb6bb028b9b808ec5016e30c (patch)
treecfbb91e940dd89d0e1d46095f43c228d7d079fa0 /lib/com_err/com_err.c
parent6f4e10db3298f6d65e1e646fe52aaafc3682b788 (diff)
Heimdal 7.8.0 does not support OpenSSL 3.0. 7.9.0 will but it hasn't been released yet. We are importing f62e2f278 for its OpenSSL 3.0 support.
Diffstat (limited to 'lib/com_err/com_err.c')
-rw-r--r--lib/com_err/com_err.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/com_err/com_err.c b/lib/com_err/com_err.c
index 22a810f8f2a6..d212e40d3261 100644
--- a/lib/com_err/com_err.c
+++ b/lib/com_err/com_err.c
@@ -38,6 +38,7 @@
#include <stdlib.h>
#include <string.h>
#include <roken.h>
+#include <heim_threads.h>
#include "com_err.h"
struct et_list *_et_list = NULL;
@@ -62,7 +63,7 @@ error_message (long code)
}
KRB5_LIB_FUNCTION int KRB5_LIB_CALL
-init_error_table(const char **msgs, long base, int count)
+init_error_table(const char *const *msgs, long base, int count)
{
initialize_error_table_r(&_et_list, msgs, count, base);
return 0;
@@ -132,7 +133,7 @@ reset_com_err_hook (void)
static const char char_set[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
-static char buf[6];
+static HEIMDAL_THREAD_LOCAL char buf[6];
KRB5_LIB_FUNCTION const char * KRB5_LIB_CALL
error_table_name(int num)