From b0f548fb56d61a44a1f689b25955140c01e1821b Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 14 Dec 2009 14:02:43 +0000 Subject: Fix compiler warnings --- lib/pop3.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/pop3.c') diff --git a/lib/pop3.c b/lib/pop3.c index cf4fd1c02..43549f791 100644 --- a/lib/pop3.c +++ b/lib/pop3.c @@ -427,9 +427,7 @@ static CURLcode pop3_statemach_act(struct connectdata *conn) if(data->set.ftp_ssl && !conn->ssl[FIRSTSOCKET].use) { /* We don't have a SSL/TLS connection yet, but SSL is requested. Switch to TLS connection now */ - const char *str; - - result = Curl_pp_sendf(&pop3c->pp, "STARTTLS", str); + result = Curl_pp_sendf(&pop3c->pp, "STARTTLS", NULL); state(conn, POP3_STARTTLS); } else @@ -930,7 +928,7 @@ CURLcode Curl_pop3_write(struct connectdata *conn, struct pop3_conn *pop3c = &conn->proto.pop3c; int checkmax = (nread >= POP3_EOB_LEN?POP3_EOB_LEN:nread); int checkleft = POP3_EOB_LEN-pop3c->eob; - int check = checkmax>= checkleft?checkleft:checkmax; + int check = (checkmax >= checkleft?checkleft:checkmax); if(!memcmp(POP3_EOB, &str[nread - check], check)) { /* substring match */ -- cgit v1.2.3