Skip to content
Snippets Groups Projects
Commit a625d802 authored by adamdunkels's avatar adamdunkels
Browse files

Added explicit typecast to buffer definition

parent ec1677ca
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: packetbuf.c,v 1.2 2009/03/23 19:37:45 adamdunkels Exp $ * $Id: packetbuf.c,v 1.3 2009/03/24 07:14:12 adamdunkels Exp $
*/ */
/** /**
...@@ -94,7 +94,7 @@ static uint8_t hdrptr; ...@@ -94,7 +94,7 @@ static uint8_t hdrptr;
msp430), having apotentially misaligned packet buffer may lead to msp430), having apotentially misaligned packet buffer may lead to
problems when accessing 16-bit values. */ problems when accessing 16-bit values. */
static uint16_t packetbuf_aligned[(PACKETBUF_SIZE + PACKETBUF_HDR_SIZE) / 2 + 1]; static uint16_t packetbuf_aligned[(PACKETBUF_SIZE + PACKETBUF_HDR_SIZE) / 2 + 1];
static uint8_t* packetbuf = packetbuf_aligned; static uint8_t *packetbuf = (uint8_t *)packetbuf_aligned;
static uint8_t *packetbufptr; static uint8_t *packetbufptr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment