From aa7ba44fb173bec495f355eda551ee63609c38b8 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Thu, 28 Feb 2008 23:59:05 +0000 Subject: [PATCH] Avoided compiler warning. --- apps/telnetd/telnetd.c | 4 ++-- core/net/uip.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/telnetd/telnetd.c b/apps/telnetd/telnetd.c index 845fdef8f..b3c962ecb 100644 --- a/apps/telnetd/telnetd.c +++ b/apps/telnetd/telnetd.c @@ -28,7 +28,7 @@ * * 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 shell_prompt(char *str) { - buf_append(&buf, str, strlen(str)); + buf_append(&buf, str, (int)strlen(str)); } /*---------------------------------------------------------------------------*/ void diff --git a/core/net/uip.c b/core/net/uip.c index 5424e1d0e..13ea29e0b 100644 --- a/core/net/uip.c +++ b/core/net/uip.c @@ -41,7 +41,7 @@ * * 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; #define MIN(a,b) ((a) < (b)? (a): (b)) 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) { uip_slen = copylen; if(data != uip_sappdata) {