1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #6102 from smlng/pr/gcoap/fix_compiler_error

gcoap: fix compiler error on macOS
This commit is contained in:
Kaspar Schleiser 2016-11-11 14:00:40 +01:00 committed by GitHub
commit 742387acc0

View File

@ -546,7 +546,7 @@ size_t gcoap_req_send(uint8_t *buf, size_t len, ipv6_addr_t *addr, uint16_t port
memo->resp_handler = resp_handler;
size_t res = _send_buf(buf, len, addr, port);
if (res && GCOAP_NON_TIMEOUT) {
if (res && (GCOAP_NON_TIMEOUT > 0)) {
/* start response wait timer */
memo->timeout_msg.type = GCOAP_NETAPI_MSG_TYPE_TIMEOUT;
memo->timeout_msg.content.ptr = (char *)memo;