Skip to content

Commit

Permalink
Merge pull request #6102 from smlng/pr/gcoap/fix_compiler_error
Browse files Browse the repository at this point in the history
gcoap: fix compiler error on macOS
  • Loading branch information
kaspar030 authored Nov 11, 2016
2 parents a48667e + ebd89a7 commit 742387a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/net/gnrc/application_layer/coap/gcoap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 742387a

Please sign in to comment.