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.
This commit is contained in:
Olaf Bergmann committed 2017-08-02 21:26:55 +02:00
1 parent 5f7f043ad6
commit 8f37e20f85
1 file changed
+1 -2
+1 -2
View File
@@ -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