mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
gnrc_priority_queue: updated coding style.
This commit is contained in:
parent
c925c5b437
commit
e5d8dde920
@ -24,8 +24,9 @@
|
||||
#define NET_GNRC_PRIORITY_PKTQUEUE_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <priority_queue.h>
|
||||
#include <net/gnrc/pkt.h>
|
||||
|
||||
#include "priority_queue.h"
|
||||
#include "net/gnrc/pkt.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -83,6 +84,7 @@ static inline void gnrc_priority_pktqueue_node_init(gnrc_priority_pktqueue_node_
|
||||
static inline void gnrc_priority_pktqueue_init(gnrc_priority_pktqueue_t *queue)
|
||||
{
|
||||
gnrc_priority_pktqueue_t qn = PRIORITY_PKTQUEUE_INIT;
|
||||
|
||||
*queue = qn;
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "net/gnrc/pktbuf.h"
|
||||
#include <net/gnrc/priority_pktqueue.h>
|
||||
#include "net/gnrc/priority_pktqueue.h"
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
@ -76,8 +76,7 @@ void gnrc_priority_pktqueue_flush(gnrc_priority_pktqueue_t* queue)
|
||||
return;
|
||||
}
|
||||
gnrc_priority_pktqueue_node_t *node;
|
||||
while( (node = (gnrc_priority_pktqueue_node_t *)priority_queue_remove_head(queue)) )
|
||||
{
|
||||
while ((node = (gnrc_priority_pktqueue_node_t *)priority_queue_remove_head(queue))) {
|
||||
gnrc_pktbuf_release(node->pkt);
|
||||
_free_node(node);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user