aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-04-24 14:11:53 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-04-24 14:11:53 +0200
commit300f40eb9948eef7e7e3645da1ec341cddff2841 (patch)
tree41c46e0ed1c806ca5531d17caab7917608e56862 /docs
parent5c39ccd83f051de3fc803584c1405b4fb5f9f899 (diff)
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
Diffstat (limited to 'docs')
-rw-r--r--docs/examples/sftpuploadresume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/sftpuploadresume.c b/docs/examples/sftpuploadresume.c
index 3fcab71fb..6e60c1e57 100644
--- a/docs/examples/sftpuploadresume.c
+++ b/docs/examples/sftpuploadresume.c
@@ -99,7 +99,7 @@ static int sftpResumeUpload(CURL *curlhandle, const char *remotepath,
#ifdef _WIN32
_fseeki64(f, remoteFileSizeByte, SEEK_SET);
#else
- fseek(f, remoteFileSizeByte, SEEK_SET);
+ fseek(f, (long)remoteFileSizeByte, SEEK_SET);
#endif
curl_easy_setopt(curlhandle, CURLOPT_APPEND, 1L);
result = curl_easy_perform(curlhandle);