mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-27 07:21:18 +01:00
Merge pull request #2085 from authmillenon/fix-pktqueue
pktqueue: fix alignment order
This commit is contained in:
commit
41d6bc303a
@ -37,8 +37,8 @@ extern "C" {
|
||||
*/
|
||||
typedef struct pktqueue_node_t {
|
||||
struct pktqueue_node_t *next; /**< next node in queue */
|
||||
void *data; /**< pointer to the data */
|
||||
uint32_t priority; /**< priority of the node */
|
||||
void *data; /**< pointer to the data */
|
||||
} pktqueue_node_t;
|
||||
|
||||
/**
|
||||
|
||||
@ -93,12 +93,12 @@ static void test_pktqueue_add_two_equal(void)
|
||||
pktqueue_add(root, elem1);
|
||||
pktqueue_add(root, elem2);
|
||||
|
||||
TEST_ASSERT(root->first == elem2);
|
||||
TEST_ASSERT(((void *)4356) == root->first->data);
|
||||
TEST_ASSERT(root->first == elem1);
|
||||
TEST_ASSERT(((void *)27088) == root->first->data);
|
||||
TEST_ASSERT_EQUAL_INT(14202, root->first->priority);
|
||||
|
||||
TEST_ASSERT(root->first->next == elem1);
|
||||
TEST_ASSERT(((void *)27088) == root->first->next->data);
|
||||
TEST_ASSERT(root->first->next == elem2);
|
||||
TEST_ASSERT(((void *)4356) == root->first->next->data);
|
||||
TEST_ASSERT_EQUAL_INT(14202, root->first->next->priority);
|
||||
|
||||
TEST_ASSERT_NULL(root->first->next->next);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user