http: eliminate ssize_t

Use size_t to avoid conversions.

Closes #19610
This commit is contained in:
Stefan Eissing 2025-11-19 15:09:57 +01:00 committed by Daniel Stenberg
parent 30afc66b88
commit 17dc43ce6c
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 97 additions and 112 deletions

View file

@ -2237,7 +2237,6 @@ static CURLcode h2_submit(struct h2_stream_ctx **pstream,
nghttp2_data_provider data_prd;
int32_t stream_id;
nghttp2_priority_spec pri_spec;
ssize_t rc;
size_t nwritten;
CURLcode result = CURLE_OK;
@ -2248,11 +2247,11 @@ static CURLcode h2_submit(struct h2_stream_ctx **pstream,
if(result)
goto out;
rc = Curl_h1_req_parse_read(&stream->h1, buf, len, NULL,
!data->state.http_ignorecustom ?
data->set.str[STRING_CUSTOMREQUEST] : NULL,
0, &result);
if(!curlx_sztouz(rc, &nwritten))
result = Curl_h1_req_parse_read(&stream->h1, buf, len, NULL,
!data->state.http_ignorecustom ?
data->set.str[STRING_CUSTOMREQUEST] : NULL,
0, &nwritten);
if(result)
goto out;
*pnwritten = nwritten;
if(!stream->h1.done) {