Avoided compiler warning.
This commit is contained in:
parent
2ce444c175
commit
aa7ba44fb1
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user