gnrc_netreg: fix static PID initialize for gnrc_netapi_callbacks

This commit is contained in:
Martine Lenders 2018-03-26 15:00:57 +02:00
parent 719515a0c3
commit 31711a8560

View File

@ -93,7 +93,7 @@ typedef enum {
* *
* @return An initialized netreg entry * @return An initialized netreg entry
*/ */
#ifdef MODULE_GNRC_NETAPI_MBOX #if defined(MODULE_GNRC_NETAPI_MBOX) || defined(MODULE_GNRC_NETAPI_CALLBACKS)
#define GNRC_NETREG_ENTRY_INIT_PID(demux_ctx, pid) { NULL, demux_ctx, \ #define GNRC_NETREG_ENTRY_INIT_PID(demux_ctx, pid) { NULL, demux_ctx, \
GNRC_NETREG_TYPE_DEFAULT, \ GNRC_NETREG_TYPE_DEFAULT, \
{ pid } } { pid } }