* Constness and voidness.
This commit is contained in:
parent
6bb9d0fa04
commit
a88f797455
3 changed files with 7 additions and 6 deletions
|
@ -29,7 +29,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* 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
|
u8_t
|
||||||
slip_write(u8_t *ptr, int len)
|
slip_write(const void *_ptr, int len)
|
||||||
{
|
{
|
||||||
|
const u8_t *ptr = _ptr;
|
||||||
u16_t i;
|
u16_t i;
|
||||||
u8_t c;
|
u8_t c;
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* 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__
|
#ifndef __SLIP_H__
|
||||||
|
@ -63,7 +63,7 @@ u8_t slip_send(void);
|
||||||
*/
|
*/
|
||||||
int slip_input_byte(unsigned char c);
|
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? */
|
/* Did we receive any bytes lately? */
|
||||||
extern u8_t slip_active;
|
extern u8_t slip_active;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* 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>
|
#include <stdio.h>
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
#define SYMTAB_CONF_BINARY_SEARCH 0
|
#define SYMTAB_CONF_BINARY_SEARCH 0
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
const char*
|
void *
|
||||||
symtab_lookup(const char *name)
|
symtab_lookup(const char *name)
|
||||||
{
|
{
|
||||||
uint16_t i=0;
|
uint16_t i=0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue