diff --git a/examples/gcoap/gcoap_cli.c b/examples/gcoap/gcoap_cli.c index f1a2f6fb71c358532fb9bdaa62c41d79797b1453..fbb931bf547e8513869d27555b5e01cbbb1f6f56 100644 --- a/examples/gcoap/gcoap_cli.c +++ b/examples/gcoap/gcoap_cli.c @@ -41,7 +41,7 @@ static const coap_resource_t _resources[] = { }; static gcoap_listener_t _listener = { - (coap_resource_t *)&_resources[0], + &_resources[0], sizeof(_resources) / sizeof(_resources[0]), NULL }; diff --git a/examples/rdcli_simple/main.c b/examples/rdcli_simple/main.c index 48af120856778265e70cd074655766ba7fc8a699..5931e64376ad65e83c350fdeda6a964361ae1bf4 100644 --- a/examples/rdcli_simple/main.c +++ b/examples/rdcli_simple/main.c @@ -57,7 +57,7 @@ static const coap_resource_t resources[] = { }; static gcoap_listener_t listener = { - .resources = (coap_resource_t *)&resources[0], + .resources = &resources[0], .resources_len = sizeof(resources) / sizeof(resources[0]), .next = NULL }; diff --git a/tests/unittests/tests-gcoap/tests-gcoap.c b/tests/unittests/tests-gcoap/tests-gcoap.c index 03cfa7c307bb9845860f3df8f0577506b04f4914..e519aaf87aab41b081c9e1ea00e23a1af260d7c1 100644 --- a/tests/unittests/tests-gcoap/tests-gcoap.c +++ b/tests/unittests/tests-gcoap/tests-gcoap.c @@ -36,13 +36,13 @@ static const coap_resource_t resources_second[] = { }; static gcoap_listener_t listener = { - .resources = (coap_resource_t *)&resources[0], + .resources = &resources[0], .resources_len = (sizeof(resources) / sizeof(resources[0])), .next = NULL }; static gcoap_listener_t listener_second = { - .resources = (coap_resource_t *)&resources_second[0], + .resources = &resources_second[0], .resources_len = (sizeof(resources_second) / sizeof(resources_second[0])), .next = NULL };