qmuxd_wrapper: Make hexdump buffer thread-local, to be on the safe side
This commit is contained in:
parent
f8a57056b2
commit
f44b9565bb
|
@ -1,5 +1,5 @@
|
|||
CFLAGS=-fPIC -Wall
|
||||
LDFLAGS=-shared -ldl
|
||||
LDFLAGS=-shared -ldl -lpthread
|
||||
|
||||
all: qmuxd_wrapper.so
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include "qmuxd_protocol.h"
|
||||
|
||||
static char hexd_buff[4096];
|
||||
static __thread char hexd_buff[4096];
|
||||
static const char hex_chars[] = "0123456789abcdef";
|
||||
|
||||
static char *_osmo_hexdump(const unsigned char *buf, int len, char *delim)
|
||||
|
|
Loading…
Reference in New Issue