From 96fb3b1e213ef64651050e929f0dcc97f6c33f0d Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Fri, 2 Feb 2018 19:02:31 +0100 Subject: [PATCH] tests/unittests/tests-gcoap: adapt to resource context ptr --- tests/unittests/tests-gcoap/tests-gcoap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 = {