aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-01-01 21:11:26 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-01-01 21:11:26 +0000
commit7795eb6db8b359e7f7389000fcd693b4037fba08 (patch)
tree440d56c009cc28b8290e5ba9071927496521c396 /src
parent31674559d369392a7198aeb1e0d73d9ce7f3ff84 (diff)
Mohun Biswas pointed out that --libcurl generated a source code with an int
function but without a return statement. While fixing that, I also took care about adding some better comments for the generated code.
Diffstat (limited to 'src')
-rw-r--r--src/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index b7a02b3ab..5d83b6b43 100644
--- a/src/main.c
+++ b/src/main.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -3575,6 +3575,8 @@ static const char * const srchead[]={
" * libcurl.",
" * If you use any *_LARGE options, make sure your compiler figure",
" * out the correct size for the curl_off_t variable.",
+ " * Read the details for all curl_easy_setopt() options online on:",
+ " * http://curlm.haxx.se/libcurl/c/curl_easy_setopt.html",
" ************************************************************************/",
"[m]",
"#include <curl/curl.h>",
@@ -3622,8 +3624,9 @@ static void dumpeasycode(struct Configurable *config)
ptr = ptr->next;
}
fprintf(out,
+ " return (int)ret;\n"
"}\n"
- "/* */\n");
+ "/**** End of sample code ****/\n");
if(fopened)
fclose(out);
}