summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-09-12 00:02:07 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-09-12 08:35:51 +0200
commit9ac40bfcf03569943baf57b6fa31b8143943b05f (patch)
treef7f5def24aefdd6438cba2a820ad1bed2c3e5056 /lib/setopt.c
parentf06e5c3544ea27ccc80b4d3d35f8feebdbb497ac (diff)
downloadcurl-9ac40bfcf03569943baf57b6fa31b8143943b05f.tar.gz
setopt: make protocol2num use a curl_off_t for the protocol bit
... since WSS does not fit within 32 bit. Bug: https://github.com/curl/curl/pull/9467#issuecomment-1243014887 Closes #9476
Diffstat (limited to 'lib/setopt.c')
-rw-r--r--lib/setopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setopt.c b/lib/setopt.c
index bfc717643..a84ae4fa4 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -153,7 +153,7 @@ static CURLcode protocol2num(char *str, curl_off_t *val)
bool found_comma = FALSE;
static struct scheme {
const char *name;
- long bit;
+ curl_off_t bit;
} const protos[] = {
{ "dict", CURLPROTO_DICT },
{ "file", CURLPROTO_FILE },