fix increment compiler warning

This commit is contained in:
Thomas Pötsch committed 2012-09-19 16:18:01 +02:00
1 parent 45b76ec304
commit fb657380c0
1 file changed
+1 -1
+1 -1
View File
@@ -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