aboutsummaryrefslogtreecommitdiff
path: root/lib/pop3.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-12-14 14:02:43 +0000
committerYang Tse <yangsita@gmail.com>2009-12-14 14:02:43 +0000
commitb0f548fb56d61a44a1f689b25955140c01e1821b (patch)
tree67cc5bcfddbf5318f8efac0d382b6ac89205e06f /lib/pop3.c
parent364d76aca717432ce40b69fd951de71efdc18d9b (diff)
Fix compiler warnings
Diffstat (limited to 'lib/pop3.c')
-rw-r--r--lib/pop3.c6
1 files changed, 2 insertions, 4 deletions
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 */