mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-24 08:01:03 +03:00
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:
1 parent
5f7f043ad6
commit
8f37e20f85
1 file changed
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user