From c741fa5fbea751f367bb26c5031914aed7fa4e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20H=C3=BC=C3=9Fler?= Date: Thu, 19 Oct 2023 17:49:25 +0200 Subject: [PATCH] gnrc/pktdump: make message queue static --- sys/net/gnrc/pktdump/gnrc_pktdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/gnrc/pktdump/gnrc_pktdump.c b/sys/net/gnrc/pktdump/gnrc_pktdump.c index 539af12f5a..40e97d56d3 100644 --- a/sys/net/gnrc/pktdump/gnrc_pktdump.c +++ b/sys/net/gnrc/pktdump/gnrc_pktdump.c @@ -44,6 +44,7 @@ kernel_pid_t gnrc_pktdump_pid = KERNEL_PID_UNDEF; * @brief Stack for the pktdump thread */ static char _stack[GNRC_PKTDUMP_STACKSIZE]; +static msg_t _msg_queue[GNRC_PKTDUMP_MSG_QUEUE_SIZE]; static void _dump_snip(gnrc_pktsnip_t *pkt) { @@ -166,10 +167,9 @@ static void *_eventloop(void *arg) { (void)arg; msg_t msg, reply; - msg_t msg_queue[GNRC_PKTDUMP_MSG_QUEUE_SIZE]; /* setup the message queue */ - msg_init_queue(msg_queue, GNRC_PKTDUMP_MSG_QUEUE_SIZE); + msg_init_queue(_msg_queue, GNRC_PKTDUMP_MSG_QUEUE_SIZE); reply.content.value = (uint32_t)(-ENOTSUP); reply.type = GNRC_NETAPI_MSG_TYPE_ACK;