mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-06 09:42:54 +03:00
fix increment compiler warning
This commit is contained in:
1 parent
45b76ec304
commit
fb657380c0
1 file changed
+1
-1
@@ -168,7 +168,7 @@ coap_context_t *coap_new_context(const coap_address_t *listen_addr);
|
||||
static inline unsigned short
|
||||
coap_new_message_id(coap_context_t *context) {
|
||||
#ifndef WITH_CONTIKI
|
||||
return htons(++context->message_id);
|
||||
return htons(++(context->message_id));
|
||||
#else /* WITH_CONTIKI */
|
||||
return uip_htons(++context->message_id);
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user