]> granicus.if.org Git - curl/commitdiff
examples: cleanup curl includes
authorDaniel Stenberg <daniel@haxx.se>
Tue, 28 Jun 2011 17:08:51 +0000 (19:08 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 28 Jun 2011 17:08:51 +0000 (19:08 +0200)
Only <curl/curl.h> is needed typically and curl/types.h has been removed

docs/examples/certinfo.c
docs/examples/chkspeed.c
docs/examples/curlgtk.c
docs/examples/ftpget.c
docs/examples/ftpgetinfo.c
docs/examples/ftpgetresp.c
docs/examples/postit2.c
docs/examples/sepheaders.c
docs/examples/simplessl.c
docs/examples/smooth-gtk-thread.c

index 02558d98cadcd22cb30b235add9c440b687b4e2e..ffcec63561c6fd0b5ebcd3b532feebe3509664a8 100644 (file)
@@ -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)
 {
index fbcb1f7648055d3cb73decb2d6baf059e22f3bbe..b5c397ab74007c7b1f1cffe957b006e902398627 100644 (file)
@@ -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"
index 2c4428083d7803a2530b42a338d65c19e17b7e7c..8cb9914c60d9a8ddda15e5dae76c8d3435f8de06 100644 (file)
@@ -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;
 
index 7b5e0d7cf67838d837c0a5cfcd52519e0114b827..bcb42bb302172caa24bdd427b4ce72808724df01 100644 (file)
@@ -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.
index 52f87d63305bd3e05ee0f3559eac3a12fffdffbd..f0746693b9334ca77d2399f794a0b36cdcddf527 100644 (file)
@@ -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
index ea882a00ffdbebdf7d90092bb9ac6fcd8f5df0c8..29290a31d057184fa261468aea2db92ec9a05764 100644 (file)
@@ -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
index bb7fd48d7e5bec8cf9593bf295ab802a75866b4d..63c2484673d398780b160ac9115e9035b8db97ec 100644 (file)
@@ -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[])
 {
index dac287886a134d240e4872fac51080ae602206d6..afa14fc85f64c0af4ef0e89ffb783c75f89152bd 100644 (file)
@@ -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)
 {
index aeaadce59568d23ce8b5e0f811dfd2ae0faf69d4..46a3783291a2c8b6ae168ea0ceb06c19b83e2bf1 100644 (file)
@@ -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
index 8cf106c81e8fe2c8d08a630f2de74ad34e24fe8c..932f6e396357ddfb1bf40f2064c53c675e850aee 100644 (file)
@@ -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