From: Gunter Knauf Date: Thu, 21 Feb 2008 15:02:14 +0000 (+0000) Subject: fixed missing header; changed bail out from exit() to return(). X-Git-Tag: curl-7_18_1~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e9c564883512130d356a81f6dcb3057572f1690;p=thirdparty%2Fcurl.git fixed missing header; changed bail out from exit() to return(). Mentioned on the list by Michal Marek. --- diff --git a/docs/examples/ftpupload.c b/docs/examples/ftpupload.c index 8b29a21ec5..9ce548480b 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);