Skip to content

Commit 00b35bf

Browse files
authored
Update main.c
now you can compile it.
1 parent 6c5fad0 commit 00b35bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

task-05/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ int main(void)
1212
puts("This is Task-05");
1313

1414
/* initialize and register pktdump to print received packets */
15-
gnrc_netreg_entry_t dump = { NULL, GNRC_NETREG_DEMUX_CTX_ALL,
16-
gnrc_pktdump_pid };
15+
gnrc_netreg_entry_t dump = GNRC_NETREG_ENTRY_INIT_PID(GNRC_NETREG_DEMUX_CTX_ALL,
16+
gnrc_pktdump_pid);
1717
gnrc_netreg_register(GNRC_NETTYPE_UNDEF, &dump);
1818

1919
char line_buf[SHELL_DEFAULT_BUFSIZE];

0 commit comments

Comments
 (0)