diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-08-31 10:17:40 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-09-01 10:40:42 +0200 |
commit | 1a890997a47d4d22df58b5183181685e49ed6e61 (patch) | |
tree | d6510eb7592ca21eb554c23795c12daacccf1694 /lib/smb.c | |
parent | 9dda13bbac1938c13ddf0a9cc4d9dd0302ff0331 (diff) | |
download | curl-1a890997a47d4d22df58b5183181685e49ed6e61.tar.gz |
all: s/int/size_t cleanup
Assisted-by: Rikard Falkeborn
Closes #2922
Diffstat (limited to 'lib/smb.c')
-rw-r--r-- | lib/smb.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -610,8 +610,8 @@ static CURLcode smb_send_and_recv(struct connectdata *conn, void **msg) /* Check if there is data in the transfer buffer */ if(!smbc->send_size && smbc->upload_size) { - int nread = smbc->upload_size > UPLOAD_BUFSIZE ? UPLOAD_BUFSIZE : - (int) smbc->upload_size; + size_t nread = smbc->upload_size > UPLOAD_BUFSIZE ? UPLOAD_BUFSIZE : + smbc->upload_size; conn->data->req.upload_fromhere = conn->data->state.ulbuf; result = Curl_fillreadbuffer(conn, nread, &nread); if(result && result != CURLE_AGAIN) |