com_err: make error_table_name() thread-safe
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <roken.h>
|
#include <roken.h>
|
||||||
|
#include <heim_threads.h>
|
||||||
#include "com_err.h"
|
#include "com_err.h"
|
||||||
|
|
||||||
struct et_list *_et_list = NULL;
|
struct et_list *_et_list = NULL;
|
||||||
@@ -132,7 +133,7 @@ reset_com_err_hook (void)
|
|||||||
static const char char_set[] =
|
static const char char_set[] =
|
||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
|
||||||
|
|
||||||
static char buf[6];
|
static HEIMDAL_THREAD_LOCAL char buf[6];
|
||||||
|
|
||||||
KRB5_LIB_FUNCTION const char * KRB5_LIB_CALL
|
KRB5_LIB_FUNCTION const char * KRB5_LIB_CALL
|
||||||
error_table_name(int num)
|
error_table_name(int num)
|
||||||
|
Reference in New Issue
Block a user