summaryrefslogtreecommitdiff
path: root/lib/smtp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-05-11 11:11:40 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-05-12 00:16:52 +0200
commita9bc819c89cae273bacc375ebcd71debbfaa79fe (patch)
tree078c6dd10c716c5d0b48497f1a162e7d861c7ddc /lib/smtp.c
parentfa050ffd27524074660d0614d14e7dfd022c893b (diff)
downloadcurl-a9bc819c89cae273bacc375ebcd71debbfaa79fe.tar.gz
sasl: use 'unsigned short' to store mechanism
... saves a few bytes of struct size in memory and it only uses 10 bits anyway. Closes #7045
Diffstat (limited to 'lib/smtp.c')
-rw-r--r--lib/smtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index e1560f583..d6f9b17c5 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -894,7 +894,7 @@ static CURLcode smtp_state_ehlo_resp(struct Curl_easy *data,
for(;;) {
size_t llen;
size_t wordlen;
- unsigned int mechbit;
+ unsigned short mechbit;
while(len &&
(*line == ' ' || *line == '\t' ||