mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc/pktdump: make message queue static
This commit is contained in:
parent
662f1be5d5
commit
c741fa5fbe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user