aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-06-28 19:08:51 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-06-28 19:08:51 +0200
commitac28971aa61d28e5dd54888e34e958d1c742b461 (patch)
tree32748f6e063908601b10c21f0be2db78eebab7cf
parentfb48e2050b558c908c7740d1c4f20fd17fdf7fe6 (diff)
examples: cleanup curl includes
Only <curl/curl.h> is needed typically and curl/types.h has been removed
-rw-r--r--docs/examples/certinfo.c2
-rw-r--r--docs/examples/chkspeed.c2
-rw-r--r--docs/examples/curlgtk.c2
-rw-r--r--docs/examples/ftpget.c2
-rw-r--r--docs/examples/ftpgetinfo.c2
-rw-r--r--docs/examples/ftpgetresp.c2
-rw-r--r--docs/examples/postit2.c2
-rw-r--r--docs/examples/sepheaders.c2
-rw-r--r--docs/examples/simplessl.c3
-rw-r--r--docs/examples/smooth-gtk-thread.c2
10 files changed, 0 insertions, 21 deletions
diff --git a/docs/examples/certinfo.c b/docs/examples/certinfo.c
index 02558d98c..ffcec6356 100644
--- a/docs/examples/certinfo.c
+++ b/docs/examples/certinfo.c
@@ -22,8 +22,6 @@
#include <stdio.h>
#include <curl/curl.h>
-#include <curl/types.h>
-#include <curl/easy.h>
static size_t wrfu(void *ptr, size_t size, size_t nmemb, void *stream)
{
diff --git a/docs/examples/chkspeed.c b/docs/examples/chkspeed.c
index fbcb1f764..b5c397ab7 100644
--- a/docs/examples/chkspeed.c
+++ b/docs/examples/chkspeed.c
@@ -35,8 +35,6 @@
#include <time.h>
#include <curl/curl.h>
-#include <curl/types.h>
-#include <curl/easy.h>
#define URL_BASE "http://speedtest.your.domain/"
#define URL_1M URL_BASE "file_1M.bin"
diff --git a/docs/examples/curlgtk.c b/docs/examples/curlgtk.c
index 2c4428083..8cb9914c6 100644
--- a/docs/examples/curlgtk.c
+++ b/docs/examples/curlgtk.c
@@ -13,8 +13,6 @@
#include <gtk/gtk.h>
#include <curl/curl.h>
-#include <curl/types.h> /* new for v7 */
-#include <curl/easy.h> /* new for v7 */
GtkWidget *Bar;
diff --git a/docs/examples/ftpget.c b/docs/examples/ftpget.c
index 7b5e0d7cf..bcb42bb30 100644
--- a/docs/examples/ftpget.c
+++ b/docs/examples/ftpget.c
@@ -22,8 +22,6 @@
#include <stdio.h>
#include <curl/curl.h>
-#include <curl/types.h>
-#include <curl/easy.h>
/*
* This is an example showing how to get a single file from an FTP server.
diff --git a/docs/examples/ftpgetinfo.c b/docs/examples/ftpgetinfo.c
index 52f87d633..f0746693b 100644
--- a/docs/examples/ftpgetinfo.c
+++ b/docs/examples/ftpgetinfo.c
@@ -23,8 +23,6 @@
#include <string.h>
#include <curl/curl.h>
-#include <curl/types.h>
-#include <curl/easy.h>
/*
* This is an example showing how to check a single file's size and mtime
diff --git a/docs/examples/ftpgetresp.c b/docs/examples/ftpgetresp.c
index ea882a00f..29290a31d 100644
--- a/docs/examples/ftpgetresp.c
+++ b/docs/examples/ftpgetresp.c
@@ -22,8 +22,6 @@
#include <stdio.h>
#include <curl/curl.h>
-#include <curl/types.h>
-#include <curl/easy.h>
/*
* Similar to ftpget.c but this also stores the received response-lines
diff --git a/docs/examples/postit2.c b/docs/examples/postit2.c
index bb7fd48d7..63c248467 100644
--- a/docs/examples/postit2.c
+++ b/docs/examples/postit2.c
@@ -37,8 +37,6 @@
#include <string.h>
#include <curl/curl.h>
-#include <curl/types.h>
-#include <curl/easy.h>
int main(int argc, char *argv[])
{
diff --git a/docs/examples/sepheaders.c b/docs/examples/sepheaders.c
index dac287886..afa14fc85 100644
--- a/docs/examples/sepheaders.c
+++ b/docs/examples/sepheaders.c
@@ -24,8 +24,6 @@
#include <unistd.h>
#include <curl/curl.h>
-#include <curl/types.h>
-#include <curl/easy.h>
static size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream)
{
diff --git a/docs/examples/simplessl.c b/docs/examples/simplessl.c
index aeaadce59..46a378329 100644
--- a/docs/examples/simplessl.c
+++ b/docs/examples/simplessl.c
@@ -22,9 +22,6 @@
#include <stdio.h>
#include <curl/curl.h>
-#include <curl/types.h>
-#include <curl/easy.h>
-
/* some requirements for this to work:
1. set pCertFile to the file with the client certificate
diff --git a/docs/examples/smooth-gtk-thread.c b/docs/examples/smooth-gtk-thread.c
index 8cf106c81..932f6e396 100644
--- a/docs/examples/smooth-gtk-thread.c
+++ b/docs/examples/smooth-gtk-thread.c
@@ -37,8 +37,6 @@
#include <pthread.h>
#include <curl/curl.h>
-#include <curl/types.h> /* new for v7 */
-#include <curl/easy.h> /* new for v7 */
#define NUMT 4