1
0
mirror of https://github.com/moparisthebest/curl synced 2025-02-28 09:21:50 -05:00

examples: cleanup curl includes

Only <curl/curl.h> is needed typically and curl/types.h has been removed
This commit is contained in:
Daniel Stenberg 2011-06-28 19:08:51 +02:00
parent fb48e2050b
commit ac28971aa6
10 changed files with 0 additions and 21 deletions

View File

@ -22,8 +22,6 @@
#include <stdio.h> #include <stdio.h>
#include <curl/curl.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) static size_t wrfu(void *ptr, size_t size, size_t nmemb, void *stream)
{ {

View File

@ -35,8 +35,6 @@
#include <time.h> #include <time.h>
#include <curl/curl.h> #include <curl/curl.h>
#include <curl/types.h>
#include <curl/easy.h>
#define URL_BASE "http://speedtest.your.domain/" #define URL_BASE "http://speedtest.your.domain/"
#define URL_1M URL_BASE "file_1M.bin" #define URL_1M URL_BASE "file_1M.bin"

View File

@ -13,8 +13,6 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <curl/curl.h> #include <curl/curl.h>
#include <curl/types.h> /* new for v7 */
#include <curl/easy.h> /* new for v7 */
GtkWidget *Bar; GtkWidget *Bar;

View File

@ -22,8 +22,6 @@
#include <stdio.h> #include <stdio.h>
#include <curl/curl.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. * This is an example showing how to get a single file from an FTP server.

View File

@ -23,8 +23,6 @@
#include <string.h> #include <string.h>
#include <curl/curl.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 * This is an example showing how to check a single file's size and mtime

View File

@ -22,8 +22,6 @@
#include <stdio.h> #include <stdio.h>
#include <curl/curl.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 * Similar to ftpget.c but this also stores the received response-lines

View File

@ -37,8 +37,6 @@
#include <string.h> #include <string.h>
#include <curl/curl.h> #include <curl/curl.h>
#include <curl/types.h>
#include <curl/easy.h>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {

View File

@ -24,8 +24,6 @@
#include <unistd.h> #include <unistd.h>
#include <curl/curl.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) static size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream)
{ {

View File

@ -22,9 +22,6 @@
#include <stdio.h> #include <stdio.h>
#include <curl/curl.h> #include <curl/curl.h>
#include <curl/types.h>
#include <curl/easy.h>
/* some requirements for this to work: /* some requirements for this to work:
1. set pCertFile to the file with the client certificate 1. set pCertFile to the file with the client certificate

View File

@ -37,8 +37,6 @@
#include <pthread.h> #include <pthread.h>
#include <curl/curl.h> #include <curl/curl.h>
#include <curl/types.h> /* new for v7 */
#include <curl/easy.h> /* new for v7 */
#define NUMT 4 #define NUMT 4