From bf2ef648503691b07fe75090d503b5266c13e53d Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Sun, 11 Dec 2011 16:10:10 +0100 Subject: [PATCH] use global uIP data buffer --- net.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net.c b/net.c index d1f8dd1a..70e84350 100644 --- a/net.c +++ b/net.c @@ -475,13 +475,13 @@ int coap_read( coap_context_t *ctx ) { #ifndef WITH_CONTIKI static char buf[COAP_MAX_PDU_SIZE]; - static coap_hdr_t *pdu = (coap_hdr_t *)buf; + coap_hdr_t *pdu = (coap_hdr_t *)buf; #else /* WITH_CONTIKI */ - static char *buf; - static coap_hdr_t *pdu; + char *buf; + coap_hdr_t *pdu; #endif /* WITH_CONTIKI */ ssize_t bytes_read; - static coap_address_t src; + coap_address_t src; coap_queue_t *node; #ifdef WITH_CONTIKI