From a88f79745519f50d01fb7a411042a89fcd36994e Mon Sep 17 00:00:00 2001 From: bg- Date: Tue, 23 Jan 2007 12:29:50 +0000 Subject: [PATCH] * Constness and voidness. --- core/dev/slip.c | 5 +++-- core/dev/slip.h | 4 ++-- core/loader/symtab-avr.c | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/core/dev/slip.c b/core/dev/slip.c index 1739716e1..01681622d 100644 --- a/core/dev/slip.c +++ b/core/dev/slip.c @@ -29,7 +29,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: slip.c,v 1.2 2006/09/26 15:47:14 bg- Exp $ + * @(#)$Id: slip.c,v 1.3 2007/01/23 12:30:12 bg- Exp $ */ @@ -118,8 +118,9 @@ slip_send(void) } u8_t -slip_write(u8_t *ptr, int len) +slip_write(const void *_ptr, int len) { + const u8_t *ptr = _ptr; u16_t i; u8_t c; diff --git a/core/dev/slip.h b/core/dev/slip.h index 515429102..829f7911e 100644 --- a/core/dev/slip.h +++ b/core/dev/slip.h @@ -29,7 +29,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: slip.h,v 1.2 2006/09/26 15:47:26 bg- Exp $ + * @(#)$Id: slip.h,v 1.3 2007/01/23 12:29:50 bg- Exp $ */ #ifndef __SLIP_H__ @@ -63,7 +63,7 @@ u8_t slip_send(void); */ int slip_input_byte(unsigned char c); -u8_t slip_write(u8_t *ptr, int len); +u8_t slip_write(const void *ptr, int len); /* Did we receive any bytes lately? */ extern u8_t slip_active; diff --git a/core/loader/symtab-avr.c b/core/loader/symtab-avr.c index 67bce941b..359774cb4 100644 --- a/core/loader/symtab-avr.c +++ b/core/loader/symtab-avr.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: symtab-avr.c,v 1.1 2006/12/22 17:12:31 barner Exp $ + * @(#)$Id: symtab-avr.c,v 1.2 2007/01/23 12:31:14 bg- Exp $ */ #include @@ -40,7 +40,7 @@ #define SYMTAB_CONF_BINARY_SEARCH 0 /*---------------------------------------------------------------------------*/ -const char* +void * symtab_lookup(const char *name) { uint16_t i=0;