Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
36a2fac7
Commit
36a2fac7
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
typecast the size to long for platforms where st_size is off_t
parent
58cf1082
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/examples/httpput.c
+3
-2
3 additions, 2 deletions
docs/examples/httpput.c
with
3 additions
and
2 deletions
docs/examples/httpput.c
+
3
−
2
View file @
36a2fac7
...
...
@@ -85,8 +85,9 @@ int main(int argc, char **argv)
/* now specify which file to upload */
curl_easy_setopt
(
curl
,
CURLOPT_READDATA
,
hd_src
);
/* and give the size of the upload (optional) */
curl_easy_setopt
(
curl
,
CURLOPT_INFILESIZE
,
file_info
.
st_size
);
/* and give the size of the upload, make sure that we don't accidentally
pass a larger variable type than "long". */
curl_easy_setopt
(
curl
,
CURLOPT_INFILESIZE
,
(
long
)
file_info
.
st_size
);
/* Now run off and do what you've been told! */
res
=
curl_easy_perform
(
curl
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment