Merge pull request #11928 from gschorcht/sys/event/detached_init
sys/event: fix of compilation problems
This commit is contained in:
commit
6e9612f1d1
@ -121,7 +121,7 @@ extern "C" {
|
||||
/**
|
||||
* @brief static initializer for detached event queues
|
||||
*/
|
||||
#define EVENT_QUEUE_INIT_DETACHED { 0 }
|
||||
#define EVENT_QUEUE_INIT_DETACHED { .waiter = NULL }
|
||||
|
||||
/**
|
||||
* @brief event structure forward declaration
|
||||
|
||||
@ -128,7 +128,7 @@ int main(void)
|
||||
puts("[START] event test application.\n");
|
||||
|
||||
/* test creation of delayed claiming of a detached event queue */
|
||||
event_queue_t dq;
|
||||
event_queue_t dq = EVENT_QUEUE_INIT_DETACHED;
|
||||
printf("initializing detached event queue %p\n", (void *)&dq);
|
||||
event_queue_init_detached(&dq);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user