projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bb4602
)
fixed missing header; changed bail out from exit() to return().
author
Gunter Knauf
<gk@gknw.de>
Thu, 21 Feb 2008 15:02:14 +0000
(15:02 +0000)
committer
Gunter Knauf
<gk@gknw.de>
Thu, 21 Feb 2008 15:02:14 +0000
(15:02 +0000)
Mentioned on the list by Michal Marek.
docs/examples/ftpupload.c
patch
|
blob
|
history
diff --git
a/docs/examples/ftpupload.c
b/docs/examples/ftpupload.c
index
8b29a21
..
9ce5484
100644
(file)
--- a/
docs/examples/ftpupload.c
+++ b/
docs/examples/ftpupload.c
@@
-14,6
+14,7
@@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <errno.h>
#ifdef WIN32
#include <io.h>
#else
@@
-61,7
+62,7
@@
int main(int argc, char **argv)
/* get the file size of the local file */
if(stat(LOCAL_FILE, &file_info)) {
printf("Couldnt open '%s': %s\n", LOCAL_FILE, strerror(errno));
-
exit(1)
;
+
return 1
;
}
printf("Local file size: %ld bytes.\n", file_info.st_size);