mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #2306 from cgundogan/rpl_no_macros_for_shell
rpl: wrong macro definitions in rpl shell commands
This commit is contained in:
commit
f6a415a3d9
@ -20,17 +20,16 @@
|
||||
|
||||
#include "rpl.h"
|
||||
|
||||
#if RPL_MAX_ROUTING_ENTRIES != 0
|
||||
static char addr_str[IPV6_MAX_ADDR_STR_LEN];
|
||||
#endif
|
||||
|
||||
void _rpl_route_handler(int argc, char **argv)
|
||||
{
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
|
||||
#if RPL_MAX_ROUTING_ENTRIES != 0
|
||||
rpl_routing_entry_t *rtable;
|
||||
rtable = rpl_get_routing_table();
|
||||
if (rtable) {
|
||||
unsigned c = 0;
|
||||
puts("--------------------------------------------------------------------");
|
||||
puts("Routing table");
|
||||
@ -50,8 +49,9 @@ void _rpl_route_handler(int argc, char **argv)
|
||||
}
|
||||
puts("--------------------------------------------------------------------");
|
||||
printf(" %u routing table entries\n", c);
|
||||
#else
|
||||
}
|
||||
else {
|
||||
puts("No routing table available");
|
||||
#endif
|
||||
}
|
||||
puts("$");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user