From ef5e0344efeef1680b277ef427ff34cfe31a6611 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Fri, 20 Nov 2020 13:09:59 +0100 Subject: [PATCH] tinydtls_sock_dtls: use new mbox_avail() function --- pkg/tinydtls/contrib/sock_dtls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/tinydtls/contrib/sock_dtls.c b/pkg/tinydtls/contrib/sock_dtls.c index 8364f3239d..952b2be1d1 100644 --- a/pkg/tinydtls/contrib/sock_dtls.c +++ b/pkg/tinydtls/contrib/sock_dtls.c @@ -461,7 +461,7 @@ static ssize_t _copy_buffer(sock_dtls_t *sock, sock_dtls_session_t *remote, &remote->ep); if (sock->async_cb && /* is there a message in the sock's mbox? */ - cib_avail(&sock->mbox.cib)) { + mbox_avail(&sock->mbox)) { if (sock->buffer.data) { sock->async_cb(sock, SOCK_ASYNC_MSG_RECV, sock->async_cb_arg); @@ -493,7 +493,7 @@ static ssize_t _complete_handshake(sock_dtls_t *sock, if (sock->async_cb) { sock_async_flags_t flags = SOCK_ASYNC_CONN_RDY; - if (cib_avail(&sock->mbox.cib)) { + if (mbox_avail(&sock->mbox)) { if (sock->buffer.data) { flags |= SOCK_ASYNC_MSG_RECV; }