diff --git a/tests/unittests/tests-gcoap/tests-gcoap.c b/tests/unittests/tests-gcoap/tests-gcoap.c index 7de796860..03cfa7c30 100644 --- a/tests/unittests/tests-gcoap/tests-gcoap.c +++ b/tests/unittests/tests-gcoap/tests-gcoap.c @@ -26,13 +26,13 @@ * A test set of dummy resources. The resource handlers are set to NULL. */ static const coap_resource_t resources[] = { - { "/act/switch", (COAP_GET | COAP_POST), NULL }, - { "/sensor/temp", (COAP_GET), NULL }, - { "/test/info/all", (COAP_GET), NULL }, + { .path = "/act/switch", .methods = (COAP_GET | COAP_POST) }, + { .path = "/sensor/temp", .methods = (COAP_GET) }, + { .path = "/test/info/all", .methods = (COAP_GET) }, }; static const coap_resource_t resources_second[] = { - { "/second/part", (COAP_GET), NULL }, + { .path = "/second/part", .methods = (COAP_GET)}, }; static gcoap_listener_t listener = {