Commit 81e0e12c authored by Olaf Bergmann's avatar Olaf Bergmann

Fix unsigned in libcoap version comparison

parent f974f552
......@@ -345,7 +345,7 @@ handle_ticket_transfer(dcaf_context_t *dcaf_context,
dcaf_transaction_update(t->state.future, session, pdu);
coap_send(session, pdu);
while (!done) {
#if !defined(LIBCOAP_VERSION) || (LIBCOAP_VERSION < 4003000)
#if !defined(LIBCOAP_VERSION) || (LIBCOAP_VERSION < 4003000U)
coap_run_once(ctx, 0);
#else /* LIBCOAP_VERSION >= 4003000 */
coap_io_process(ctx, COAP_IO_WAIT);
......
......@@ -348,7 +348,7 @@ dcaf_send_request_uri(dcaf_context_t *dcaf_context,
/* Store remote address in transaction object. We need to adjust the
* port to switch to DTLS later. */
#if !defined(LIBCOAP_VERSION) || (LIBCOAP_VERSION < 4003000)
#if !defined(LIBCOAP_VERSION) || (LIBCOAP_VERSION < 4003000U)
coap_address_copy(&t->remote, &session->remote_addr);
#else /* LIBCOAP_VERSION >= 4003000 */
coap_address_copy(&t->remote, &session->addr_info.remote);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment