Skip to content
Snippets Groups Projects
Commit 33c84591 authored by Pekka Nikander's avatar Pekka Nikander
Browse files

{examples,tests}/gcoap: Remove unnecessary type casts

parent 8f10d65a
No related branches found
No related tags found
No related merge requests found
......@@ -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
};
......
......@@ -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
};
......
......@@ -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
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment