aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index e8645c194..d997d7b6b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -48,6 +48,8 @@
#include <curl/curl.h>
#include <curl/types.h> /* new for v7 */
#include <curl/easy.h> /* new for v7 */
+
+#define _MPRINTF_REPLACE /* we want curl-functions instead of native ones */
#include <curl/mprintf.h>
#include "urlglob.h"
@@ -86,6 +88,10 @@
#include "../lib/memdebug.h"
#endif
+#ifndef __cplusplus /* (rabe) */
+typedef char bool;
+#endif /* (rabe) */
+
typedef enum {
HTTPREQ_UNSPEC,
HTTPREQ_GET,
@@ -1530,7 +1536,6 @@ int main(int argc, char *argv[])
curl_easy_setopt(curl, CURLOPT_TIMEVALUE, config.condtime);
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, config.customrequest);
curl_easy_setopt(curl, CURLOPT_STDERR, config.errors);
- curl_easy_setopt(curl, CURLOPT_WRITEINFO, config.writeout);
/* three new ones in libcurl 7.3: */
curl_easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, config.proxytunnel);
@@ -1593,6 +1598,9 @@ int main(int argc, char *argv[])
printf("--%s--\n", MIMEseparator);
#endif
+ /* cleanup memory used for URL globbing patterns */
+ glob_cleanup(urls);
+
curl_slist_free_all(config.quote); /* the checks for config.quote == NULL */
curl_slist_free_all(config.postquote); /* */
curl_slist_free_all(config.headers); /* */