Avoid compiler warning.

This commit is contained in:
oliverschmidt 2006-08-13 14:06:24 +00:00
parent 6973e29dfc
commit fab4acbfe4
3 changed files with 6 additions and 6 deletions

View File

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $Id: cfs.c,v 1.1 2006/06/17 22:41:15 adamdunkels Exp $
* $Id: cfs.c,v 1.2 2006/08/13 14:06:24 oliverschmidt Exp $
*/
#include "contiki.h"
@ -60,7 +60,7 @@ SERVICE(cfs_nullservice, cfs_service,
});
/*---------------------------------------------------------------------------*/
struct cfs_service_interface *
const struct cfs_service_interface *
cfs_find_service(void)
{
struct service *s;

View File

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $Id: ctk-draw.c,v 1.1 2006/06/17 22:41:15 adamdunkels Exp $
* $Id: ctk-draw.c,v 1.2 2006/08/13 14:09:46 oliverschmidt Exp $
*/
@ -48,7 +48,7 @@ unsigned char ctk_draw_windowborder_width = 1,
void
ctk_draw_init(void)
{
struct ctk_draw_service *i;
const struct ctk_draw_service *i;
struct service *s;
s = SERVICE_FIND(ctk_draw_service);

View File

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $Id: uip-fw.c,v 1.2 2006/08/09 16:13:39 bg- Exp $
* $Id: uip-fw.c,v 1.3 2006/08/13 14:14:39 oliverschmidt Exp $
*/
/**
* \addtogroup uip
@ -256,7 +256,7 @@ time_exceeded(void)
IP header (20) = 56. */
uip_len = 56;
ICMPBUF->len[0] = 0;
ICMPBUF->len[1] = uip_len;
ICMPBUF->len[1] = (u8_t)uip_len;
/* Fill in the other fields in the IP header. */
ICMPBUF->vhl = 0x45;