* Constness and voidness.

This commit is contained in:
bg- 2007-01-23 12:29:50 +00:00
parent 6bb9d0fa04
commit a88f797455
3 changed files with 7 additions and 6 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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 <stdio.h>
@ -40,7 +40,7 @@
#define SYMTAB_CONF_BINARY_SEARCH 0
/*---------------------------------------------------------------------------*/
const char*
void *
symtab_lookup(const char *name)
{
uint16_t i=0;