From 8f37e20f853686fa10dd93f2b789c3033856c624 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Wed, 2 Aug 2017 21:26:55 +0200 Subject: [PATCH] coap-server.c: removed parameter local_if from check_async() coap_async_state_t now contains a reference to the session that is associated with the respective async state. As the response must be sent over this session, the local_if parameter of check_async() is not used anymore and can be removed. --- examples/coap-server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/coap-server.c b/examples/coap-server.c index 172de5f5..40e8921e 100644 --- a/examples/coap-server.c +++ b/examples/coap-server.c @@ -246,7 +246,6 @@ hnd_get_async(coap_context_t *ctx, static void check_async(coap_context_t *ctx, - const coap_endpoint_t *local_if, coap_tick_t now) { coap_pdu_t *response; coap_async_state_t *tmp; @@ -553,7 +552,7 @@ main(int argc, char **argv) { #ifndef WITHOUT_ASYNC /* check if we have to send asynchronous responses */ coap_ticks( &now ); - check_async(ctx, ctx->endpoint, now); + check_async(ctx, now); #endif /* WITHOUT_ASYNC */ #ifndef WITHOUT_OBSERVE