aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-05-31 19:55:22 +0200
committerYang Tse <yangsita@gmail.com>2010-05-31 19:55:22 +0200
commit1bb04927f3f880a3e275db32bb047eb98c925d3f (patch)
tree2b38219d01f32bfe7337e155c5c7737d071e2e9a /lib
parent3fd01be6484c70b57c3cd54fe0e04b3d80fb7624 (diff)
fix compiler warning: enumerated type mixed with another type
Diffstat (limited to 'lib')
-rw-r--r--lib/smtp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index d2ceb58c3..4aafd5005 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -374,8 +374,8 @@ static CURLcode smtp_authenticate(struct connectdata *conn)
char * initresp;
const char * mech;
size_t l;
- int state1;
- int state2;
+ smtpstate state1;
+ smtpstate state2;
if(!conn->bits.user_passwd)
state(conn, SMTP_STOP); /* End of connect phase. */
@@ -386,8 +386,8 @@ static CURLcode smtp_authenticate(struct connectdata *conn)
/* Check supported authentication mechanisms by decreasing order of
preference. */
mech = (const char *) NULL; /* Avoid compiler warnings. */
- state1 = 0;
- state2 = 0;
+ state1 = SMTP_STOP;
+ state2 = SMTP_STOP;
#ifndef CURL_DISABLE_CRYPTO_AUTH
if(smtpc->authmechs & SMTP_AUTH_CRAM_MD5) {