summaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-07-04 19:42:40 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-07-04 19:42:40 +0200
commit1d85d2e4f9440f192a99e52c726cf146b90efbaf (patch)
tree403daf6e77fe537357d69d45888f35ec6c854aa4 /lib/urldata.h
parentccc8092b053a0e83cb95af154e2580b9644a9a1a (diff)
downloadcurl-1d85d2e4f9440f192a99e52c726cf146b90efbaf.tar.gz
urldata: make 'use_port' an usigned short
... instead of a long. It is already enforced to not attempt to set any value outside of 16 bits unsigned. Closes #9099
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 6523d7461..374af6ad9 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -1649,7 +1649,7 @@ struct UserDefined {
void *out; /* CURLOPT_WRITEDATA */
void *in_set; /* CURLOPT_READDATA */
void *writeheader; /* write the header to this if non-NULL */
- long use_port; /* which port to use (when not using default) */
+ unsigned short use_port; /* which port to use (when not using default) */
unsigned long httpauth; /* kind of HTTP authentication to use (bitmask) */
unsigned long proxyauth; /* kind of proxy authentication to use (bitmask) */
#ifndef CURL_DISABLE_PROXY