Avoided compiler warning.

This commit is contained in:
oliverschmidt 2008-02-28 23:59:05 +00:00
parent 2ce444c175
commit aa7ba44fb1
2 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki desktop OS. * This file is part of the Contiki desktop OS.
* *
* $Id: telnetd.c,v 1.11 2008/02/28 23:50:38 oliverschmidt Exp $ * $Id: telnetd.c,v 1.12 2008/02/28 23:59:27 oliverschmidt Exp $
* *
*/ */
@ -152,7 +152,7 @@ telnetd_quit(void)
void void
shell_prompt(char *str) shell_prompt(char *str)
{ {
buf_append(&buf, str, strlen(str)); buf_append(&buf, str, (int)strlen(str));
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
void void

View file

@ -41,7 +41,7 @@
* *
* This file is part of the uIP TCP/IP stack. * This file is part of the uIP TCP/IP stack.
* *
* $Id: uip.c,v 1.13 2008/02/24 21:03:24 adamdunkels Exp $ * $Id: uip.c,v 1.14 2008/02/28 23:59:05 oliverschmidt Exp $
* *
*/ */
@ -1918,7 +1918,7 @@ uip_send(const void *data, int len)
int copylen; int copylen;
#define MIN(a,b) ((a) < (b)? (a): (b)) #define MIN(a,b) ((a) < (b)? (a): (b))
copylen = MIN(len, UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN - copylen = MIN(len, UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN -
((char *)uip_sappdata - (char *)&uip_buf[UIP_LLH_LEN + UIP_TCPIP_HLEN])); (int)((char *)uip_sappdata - (char *)&uip_buf[UIP_LLH_LEN + UIP_TCPIP_HLEN]));
if(copylen > 0) { if(copylen > 0) {
uip_slen = copylen; uip_slen = copylen;
if(data != uip_sappdata) { if(data != uip_sappdata) {