From a625d80259db6d9b5ee4acb5e304df52ee439d0a Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 24 Mar 2009 07:14:12 +0000 Subject: [PATCH] Added explicit typecast to buffer definition --- core/net/rime/packetbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/net/rime/packetbuf.c b/core/net/rime/packetbuf.c index e953bcf4c..0997ebc86 100644 --- a/core/net/rime/packetbuf.c +++ b/core/net/rime/packetbuf.c @@ -33,7 +33,7 @@ * * 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; msp430), having apotentially misaligned packet buffer may lead to problems when accessing 16-bit values. */ 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;