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;