From 5e9c564883512130d356a81f6dcb3057572f1690 Mon Sep 17 00:00:00 2001 From: Gunter Knauf Date: Thu, 21 Feb 2008 15:02:14 +0000 Subject: fixed missing header; changed bail out from exit() to return(). Mentioned on the list by Michal Marek. --- docs/examples/ftpupload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/examples/ftpupload.c') diff --git a/docs/examples/ftpupload.c b/docs/examples/ftpupload.c index 8b29a21ec..9ce548480 100644 --- a/docs/examples/ftpupload.c +++ b/docs/examples/ftpupload.c @@ -14,6 +14,7 @@ #include #include #include +#include #ifdef WIN32 #include #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); -- cgit v1.2.3