From 8430dab0399f5df685e93672dd7a56ae47fc8113 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Wed, 27 Jan 2010 07:36:31 +0000 Subject: [PATCH] Typecast to fix nightly build problem --- core/net/mac/csma.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/net/mac/csma.c b/core/net/mac/csma.c index ed1096aa4..7f761bb90 100644 --- a/core/net/mac/csma.c +++ b/core/net/mac/csma.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: csma.c,v 1.1 2010/01/25 11:46:44 adamdunkels Exp $ + * $Id: csma.c,v 1.2 2010/01/27 07:36:31 adamdunkels Exp $ */ /** @@ -50,6 +50,8 @@ #include "lib/list.h" #include "lib/memb.h" +#include + struct queued_packet { struct queued_packet *next; struct queuebuf *buf; @@ -181,7 +183,7 @@ channel_check_interval(void) static char namebuf[NAMEBUF_LEN]; const struct mac_driver csma_driver = { namebuf, - csma_init, + (const struct mac_driver *(*)(const struct radio_driver *psc))csma_init, send_packet, read_packet, set_receive_function,