mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05:00
examples/sftpuploadresume: typecast fseek argument to long
/docs/examples/sftpuploadresume.c:102:12: warning: conversion to 'long int' from 'curl_off_t {aka long long int}' may alter its value
This commit is contained in:
parent
5c39ccd83f
commit
300f40eb99
@ -99,7 +99,7 @@ static int sftpResumeUpload(CURL *curlhandle, const char *remotepath,
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
_fseeki64(f, remoteFileSizeByte, SEEK_SET);
|
_fseeki64(f, remoteFileSizeByte, SEEK_SET);
|
||||||
#else
|
#else
|
||||||
fseek(f, remoteFileSizeByte, SEEK_SET);
|
fseek(f, (long)remoteFileSizeByte, SEEK_SET);
|
||||||
#endif
|
#endif
|
||||||
curl_easy_setopt(curlhandle, CURLOPT_APPEND, 1L);
|
curl_easy_setopt(curlhandle, CURLOPT_APPEND, 1L);
|
||||||
result = curl_easy_perform(curlhandle);
|
result = curl_easy_perform(curlhandle);
|
||||||
|
Loading…
Reference in New Issue
Block a user