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

tests: use global gnrc_pktdump_pid

This commit is contained in:
Cenk Gündoğan 2016-03-11 14:23:07 +01:00
parent bf1af5953f
commit 047fd79ae6
6 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@ int main(void)
/* register the pktdump thread */
puts("Register the packet dump thread for GNRC_NETTYPE_UNDEF packets");
dump.pid = gnrc_pktdump_getpid();
dump.pid = gnrc_pktdump_pid;
dump.demux_ctx = GNRC_NETREG_DEMUX_CTX_ALL;
gnrc_netreg_register(GNRC_NETTYPE_UNDEF, &dump);

View File

@ -32,7 +32,7 @@ int main(void)
/* register the pktdump thread */
puts("Register the packet dump thread for GNRC_NETTYPE_UNDEF packets");
dump.pid = gnrc_pktdump_getpid();
dump.pid = gnrc_pktdump_pid;
dump.demux_ctx = GNRC_NETREG_DEMUX_CTX_ALL;
gnrc_netreg_register(GNRC_NETTYPE_UNDEF, &dump);

View File

@ -41,7 +41,7 @@ int main(void)
gnrc_nomac_init(nomac_stack, sizeof(nomac_stack), 5, "nomac", &dev);
/* initialize packet dumper */
netobj.pid = gnrc_pktdump_getpid();
netobj.pid = gnrc_pktdump_pid;
netobj.demux_ctx = GNRC_NETREG_DEMUX_CTX_ALL;
gnrc_netreg_register(GNRC_NETTYPE_UNDEF, &netobj);

View File

@ -35,7 +35,7 @@ int main(void)
puts("Xbee S1 device driver test");
/* initialize and register pktdump */
dump.pid = gnrc_pktdump_getpid();
dump.pid = gnrc_pktdump_pid;
if (dump.pid <= KERNEL_PID_UNDEF) {
puts("Error starting pktdump thread");
return -1;

View File

@ -35,7 +35,7 @@ int main(void)
puts("SLIP test");
/* initialize and register pktdump */
dump.pid = gnrc_pktdump_getpid();
dump.pid = gnrc_pktdump_pid;
dump.demux_ctx = GNRC_NETREG_DEMUX_CTX_ALL;
if (dump.pid <= KERNEL_PID_UNDEF) {

View File

@ -35,7 +35,7 @@ int main(void)
puts("ZEP module test");
/* initialize and register pktdump */
dump.pid = gnrc_pktdump_getpid();
dump.pid = gnrc_pktdump_pid;
if (dump.pid <= KERNEL_PID_UNDEF) {
puts("Error starting pktdump thread");