diff options
Diffstat (limited to 'bpf_image.c')
-rw-r--r-- | bpf_image.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bpf_image.c b/bpf_image.c index e48c76d54ed8..38eb857b9e87 100644 --- a/bpf_image.c +++ b/bpf_image.c @@ -19,9 +19,7 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#ifdef HAVE_CONFIG_H #include <config.h> -#endif #include <pcap-types.h> @@ -44,6 +42,8 @@ #include "pcap-int.h" +#include "thread-local.h" + #ifdef HAVE_OS_PROTO_H #include "os-proto.h" #endif @@ -130,7 +130,7 @@ char * bpf_image(const struct bpf_insn *p, int n) { const char *op; - static char image[256]; + static thread_local char image[256]; char operand_buf[64]; const char *operand; |