1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-29 08:21:18 +01:00

core: shadowing in priority_queue_print

The variable `node` shadows the parameter `node`. The access of
`node->first` would not compile, because there is no member `first` in
`priority_queue_t`.
This commit is contained in:
René Kijewski 2014-08-11 18:42:25 +02:00
parent 3b7591f3bc
commit bf6548ca30

View File

@ -69,11 +69,11 @@ void priority_queue_add(priority_queue_t *root, priority_queue_node_t *new_obj)
}
#if ENABLE_DEBUG
void priority_queue_print(priority_queue_t *node)
void priority_queue_print(priority_queue_t *root)
{
printf("queue:\n");
for (priority_queue_node_t *node = node->first; node; node = node->next) {
for (priority_queue_node_t *node = root->first; node; node = node->next) {
printf("Data: %u Priority: %lu\n", node->data, (unsigned long) node->priority);
}
}