aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-11-22 14:41:24 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-11-22 14:41:24 +0000
commitb3572269a42db0e9e5e3f68c3166f454e4e7df3c (patch)
treea2a42dd9cdbe721bb904167682f785243b4d8387
parent097d449cc1d4961b3a11b992e21c2c0ccb73106f (diff)
removed unused variable and trailing whitespace
-rw-r--r--docs/examples/httpput.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/docs/examples/httpput.c b/docs/examples/httpput.c
index 3b3fac136..d4b7dd5af 100644
--- a/docs/examples/httpput.c
+++ b/docs/examples/httpput.c
@@ -1,8 +1,8 @@
/*****************************************************************************
- * _ _ ____ _
- * 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");