mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-21 23:05:15 +03:00
use global uIP data buffer
This commit is contained in:
1 parent
830a4c7188
commit
bf2ef64850
1 file changed
+4
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user