diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-07-04 19:42:40 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-07-04 19:42:40 +0200 |
commit | 1d85d2e4f9440f192a99e52c726cf146b90efbaf (patch) | |
tree | 403daf6e77fe537357d69d45888f35ec6c854aa4 /lib/urldata.h | |
parent | ccc8092b053a0e83cb95af154e2580b9644a9a1a (diff) | |
download | curl-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.h | 2 |
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 |