From fb657380c0cb58848656d84c35ac9bc20ec60835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20P=C3=B6tsch?= Date: Wed, 19 Sep 2012 15:29:48 +0200 Subject: [PATCH] fix increment compiler warning --- net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.h b/net.h index 2f0a557d..75ae58c0 100644 --- a/net.h +++ b/net.h @@ -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