removed unused variable and trailing whitespace
This commit is contained in:
parent
097d449cc1
commit
b3572269a4
@ -1,8 +1,8 @@
|
|||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* _ _ ____ _
|
* _ _ ____ _
|
||||||
* Project ___| | | | _ \| |
|
* Project ___| | | | _ \| |
|
||||||
* / __| | | | |_) | |
|
* / __| | | | |_) | |
|
||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
@ -39,7 +39,6 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
FILE *ftpfile;
|
|
||||||
FILE * hd_src ;
|
FILE * hd_src ;
|
||||||
int hd ;
|
int hd ;
|
||||||
struct stat file_info;
|
struct stat file_info;
|
||||||
@ -49,17 +48,17 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
if(argc < 3)
|
if(argc < 3)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
file= argv[1];
|
file= argv[1];
|
||||||
url = argv[2];
|
url = argv[2];
|
||||||
|
|
||||||
/* get the file size of the local file */
|
/* get the file size of the local file */
|
||||||
hd = open(file, O_RDONLY) ;
|
hd = open(file, O_RDONLY) ;
|
||||||
fstat(hd, &file_info);
|
fstat(hd, &file_info);
|
||||||
close(hd) ;
|
close(hd) ;
|
||||||
|
|
||||||
/* get a FILE * of the same file, could also be made with
|
/* 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! */
|
an example! */
|
||||||
hd_src = fopen(file, "rb");
|
hd_src = fopen(file, "rb");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user