char is signed but uip_buf is unsigned

spi.h:
	casted unused values to void

autostart.c:
autostart.h:
        The array itself should be const but the processes pointed to
        should not.

profile-aggregates.c:
        sizeof returns unsigned long on my platform
This commit is contained in:
ksb 2007-11-18 12:27:44 +00:00
parent 46b6ce9193
commit 71dc988cb9
5 changed files with 18 additions and 18 deletions

View file

@ -29,7 +29,7 @@
*
* This file is part of the Contiki operating system.
*
* @(#)$Id: slip.c,v 1.4 2007/02/01 14:04:06 bg- Exp $
* @(#)$Id: slip.c,v 1.5 2007/11/18 12:27:44 ksb Exp $
*/
@ -228,7 +228,7 @@ PROCESS_THREAD(slip_process, ev, data)
uip_len = slip_poll_handler(&uip_buf[UIP_LLH_LEN],
UIP_BUFSIZE - UIP_LLH_LEN);
if(uip_len == 4 && strncmp(&uip_buf[UIP_LLH_LEN], "?IPA", 4) == 0) {
if(uip_len == 4 && strncmp((char*)&uip_buf[UIP_LLH_LEN], "?IPA", 4) == 0) {
char buf[8];
memcpy(&buf[0], "=IPA", 4);
memcpy(&buf[4], &uip_hostaddr, 4);