Avoid compiler warnings.

This commit is contained in:
oliverschmidt 2006-08-21 21:32:24 +00:00
parent a89fd34530
commit 92e39a92a1

View File

@ -30,7 +30,7 @@
* *
* Author: Adam Dunkels <adam@sics.se> * Author: Adam Dunkels <adam@sics.se>
* *
* $Id: smtp-socket.c,v 1.1 2006/06/17 22:41:11 adamdunkels Exp $ * $Id: smtp-socket.c,v 1.2 2006/08/21 21:32:24 oliverschmidt Exp $
*/ */
#include "smtp.h" #include "smtp.h"
@ -73,7 +73,7 @@ static u16_t smtpserver[2];
#define ISO_5 0x35 #define ISO_5 0x35
#define SEND_STRING(s, str) PSOCK_SEND(s, str, strlen(str)) #define SEND_STRING(s, str) PSOCK_SEND(s, str, (unsigned char)strlen(str))
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static static
PT_THREAD(smtp_thread(void)) PT_THREAD(smtp_thread(void))
@ -214,7 +214,7 @@ smtp_send(char *to, char *cc, char *from, char *subject,
{ {
struct uip_conn *conn; struct uip_conn *conn;
conn = tcp_connect(smtpserver, HTONS(25), NULL); conn = tcp_connect((uip_ipaddr_t *)smtpserver, HTONS(25), NULL);
if(conn == NULL) { if(conn == NULL) {
return 0; return 0;
} }