1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

net/gcoap: fixed coding style issue

This commit is contained in:
Hauke Petersen 2017-05-22 13:47:36 +02:00
parent 459f6083e9
commit cd4109100f

View File

@ -381,8 +381,9 @@ void gcoap_register_listener(gcoap_listener_t *listener)
{
/* Add the listener to the end of the linked list. */
gcoap_listener_t *_last = _coap_state.listeners;
while (_last->next)
while (_last->next) {
_last = _last->next;
}
listener->next = NULL;
_last->next = listener;