From d5e5630ac95b43bb7f54cc61957fb0bf66757e42 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 10 Oct 2008 15:33:04 +0000 Subject: small cleanup in header file includes --- src/check_curl.c | 6 +++--- src/curlhelper.c | 6 ++---- src/curlhelper.h | 2 ++ src/utils.c | 5 ----- 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/check_curl.c b/src/check_curl.c index 011c8ee..3080304 100644 --- a/src/check_curl.c +++ b/src/check_curl.c @@ -16,9 +16,9 @@ along with this program. If not, see . */ -#include -#include -#include +#include /* for printf */ +#include /* for exit */ +#include /* for strstr */ #include #include diff --git a/src/curlhelper.c b/src/curlhelper.c index 57d2235..3c44f2c 100644 --- a/src/curlhelper.c +++ b/src/curlhelper.c @@ -16,10 +16,8 @@ along with this program. If not, see . */ -#define _XOPEN_SOURCE 600 -#include -#include -#include +#include /* for memcpy */ +#include /* for malloc, free */ #include "cmdline.h" diff --git a/src/curlhelper.h b/src/curlhelper.h index a027918..611c6d1 100644 --- a/src/curlhelper.h +++ b/src/curlhelper.h @@ -19,6 +19,8 @@ #ifndef __CURLHELPER_H #define __CURLHELPER_H +#include /* for size_t */ + /* callbacks for body, header, debug output */ typedef struct { diff --git a/src/utils.c b/src/utils.c index f6ccaab..be8956f 100644 --- a/src/utils.c +++ b/src/utils.c @@ -16,11 +16,6 @@ along with this program. If not, see . */ -#define _XOPEN_SOURCE 600 -#include -#include -#include - #include "utils.h" void remove_newlines( char *s ) { -- cgit v1.2.3-54-g00ecf