Avoid compiler warnings.

This commit is contained in:
oliverschmidt 2006-08-16 22:09:51 +00:00
parent 62fa3b8c01
commit 1f7391e7de
2 changed files with 8 additions and 8 deletions

View file

@ -29,7 +29,7 @@
* *
* This an example program for the Contiki desktop OS * This an example program for the Contiki desktop OS
* *
* $Id: calc.c,v 1.1 2006/06/17 22:41:10 adamdunkels Exp $ * $Id: calc.c,v 1.2 2006/08/16 22:11:16 oliverschmidt Exp $
* *
*/ */
@ -138,11 +138,11 @@ operand2_to_input(void)
{ {
unsigned char i; unsigned char i;
input[7] = (operand2/10000) % 10 + '0'; input[7] = (char)((operand2/10000) % 10) + '0';
input[8] = (operand2/1000) % 10 + '0'; input[8] = (char)((operand2/1000) % 10) + '0';
input[9] = (operand2/100) % 10 + '0'; input[9] = (char)((operand2/100) % 10) + '0';
input[10] = (operand2/10) % 10 + '0'; input[10] = (char)((operand2/10) % 10) + '0';
input[11] = operand2 % 10 + '0'; input[11] = (char)(operand2 % 10) + '0';
for(i = 0; i < 4; ++i) { for(i = 0; i < 4; ++i) {
if(input[7 + i] == '0') { if(input[7 + i] == '0') {

View file

@ -30,7 +30,7 @@
* *
* Author: Adam Dunkels <adam@sics.se> * Author: Adam Dunkels <adam@sics.se>
* *
* $Id: httpd.c,v 1.2 2006/08/09 16:13:39 bg- Exp $ * $Id: httpd.c,v 1.3 2006/08/16 22:09:51 oliverschmidt Exp $
*/ */
#include "contiki-net.h" #include "contiki-net.h"
@ -44,7 +44,7 @@
#define STATE_WAITING 0 #define STATE_WAITING 0
#define STATE_OUTPUT 1 #define STATE_OUTPUT 1
#define SEND_STRING(s, str) PSOCK_SEND(s, str, strlen(str)) #define SEND_STRING(s, str) PSOCK_SEND(s, str, (unsigned int)strlen(str))
MEMB(conns, struct httpd_state, 8); MEMB(conns, struct httpd_state, 8);
#define ISO_nl 0x0a #define ISO_nl 0x0a