We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c5fad0 commit 00b35bfCopy full SHA for 00b35bf
1 file changed
task-05/main.c
@@ -12,8 +12,8 @@ int main(void)
12
puts("This is Task-05");
13
14
/* initialize and register pktdump to print received packets */
15
- gnrc_netreg_entry_t dump = { NULL, GNRC_NETREG_DEMUX_CTX_ALL,
16
- gnrc_pktdump_pid };
+ gnrc_netreg_entry_t dump = GNRC_NETREG_ENTRY_INIT_PID(GNRC_NETREG_DEMUX_CTX_ALL,
+ gnrc_pktdump_pid);
17
gnrc_netreg_register(GNRC_NETTYPE_UNDEF, &dump);
18
19
char line_buf[SHELL_DEFAULT_BUFSIZE];
0 commit comments