size_t *size) /* size of the response */
{
struct connectdata *conn = pp->conn;
+#if defined(HAVE_KRB4) || defined(HAVE_GSSAPI)
struct SessionHandle *data = conn->data;
char * const buf = data->state.buffer;
+#endif
CURLcode result = CURLE_OK;
int code;
ssize_t clipamount = 0;
bool restart = FALSE;
- data->req.headerbytecount += gotbytes;
+ data->req.headerbytecount += (long)gotbytes;
pp->nread_resp += gotbytes;
for(i = 0; i < gotbytes; ptr++, i++) {
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
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 */
static CURLcode smtp_doing(struct connectdata *conn,
bool *dophase_done);
static CURLcode smtp_setup_connection(struct connectdata * conn);
+#if 0
static void smtp_respinit(struct connectdata *conn);
+#endif
/*
* SMTP protocol handler.
{
CURLcode result = CURLE_OK;
struct SessionHandle *data = conn->data;
+#if 0
struct FTP *smtp = data->state.proto.smtp;
+#endif
/* send MAIL */
result = Curl_pp_sendf(&conn->proto.smtpc.pp, "MAIL FROM:<%s>",
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(&smtpc->pp, "STARTTLS", str);
+ result = Curl_pp_sendf(&smtpc->pp, "STARTTLS", NULL);
state(conn, SMTP_STARTTLS);
}
else
static CURLcode smtp_parse_url_path(struct connectdata *conn)
{
/* the smtp struct is already inited in smtp_connect() */
+#if 0
struct smtp_conn *smtpc = &conn->proto.smtpc;
struct SessionHandle *data = conn->data;
+#endif
+ (void)conn;
/* url decode... */