mirror of
https://github.com/curl/curl.git
synced 2025-09-29 07:26:48 +03:00
fix compiler warning: enumerated type mixed with another type
This commit is contained in:
parent
3fd01be648
commit
1bb04927f3
|
@ -374,8 +374,8 @@ static CURLcode smtp_authenticate(struct connectdata *conn)
|
||||||
char * initresp;
|
char * initresp;
|
||||||
const char * mech;
|
const char * mech;
|
||||||
size_t l;
|
size_t l;
|
||||||
int state1;
|
smtpstate state1;
|
||||||
int state2;
|
smtpstate state2;
|
||||||
|
|
||||||
if(!conn->bits.user_passwd)
|
if(!conn->bits.user_passwd)
|
||||||
state(conn, SMTP_STOP); /* End of connect phase. */
|
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
|
/* Check supported authentication mechanisms by decreasing order of
|
||||||
preference. */
|
preference. */
|
||||||
mech = (const char *) NULL; /* Avoid compiler warnings. */
|
mech = (const char *) NULL; /* Avoid compiler warnings. */
|
||||||
state1 = 0;
|
state1 = SMTP_STOP;
|
||||||
state2 = 0;
|
state2 = SMTP_STOP;
|
||||||
|
|
||||||
#ifndef CURL_DISABLE_CRYPTO_AUTH
|
#ifndef CURL_DISABLE_CRYPTO_AUTH
|
||||||
if(smtpc->authmechs & SMTP_AUTH_CRAM_MD5) {
|
if(smtpc->authmechs & SMTP_AUTH_CRAM_MD5) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user