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
b3572269
Commit
b3572269
authored
20 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
removed unused variable and trailing whitespace
parent
097d449c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/examples/httpput.c
+7
-8
7 additions, 8 deletions
docs/examples/httpput.c
with
7 additions
and
8 deletions
docs/examples/httpput.c
+
7
−
8
View file @
b3572269
/*****************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* $Id$
...
...
@@ -39,7 +39,6 @@ int main(int argc, char **argv)
{
CURL
*
curl
;
CURLcode
res
;
FILE
*
ftpfile
;
FILE
*
hd_src
;
int
hd
;
struct
stat
file_info
;
...
...
@@ -49,17 +48,17 @@ int main(int argc, char **argv)
if
(
argc
<
3
)
return
1
;
file
=
argv
[
1
];
url
=
argv
[
2
];
/* get the file size of the local file */
hd
=
open
(
file
,
O_RDONLY
)
;
fstat
(
hd
,
&
file_info
);
close
(
hd
)
;
/* get a FILE * of the same file, could also be made with
fdopen() from the previous descriptor, but hey this is just
fdopen() from the previous descriptor, but hey this is just
an example! */
hd_src
=
fopen
(
file
,
"rb"
);
...
...
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