diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2008-10-10 15:33:04 +0000 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2008-10-10 15:33:04 +0000 |
commit | d5e5630ac95b43bb7f54cc61957fb0bf66757e42 (patch) | |
tree | 0e02320b05a93637874d5445517c7bd867b7d047 | |
parent | b86bace98ed84c0b97a7dafa12fc4c07f3a7e9fe (diff) | |
download | nagios-plugin-curl-d5e5630ac95b43bb7f54cc61957fb0bf66757e42.tar.gz nagios-plugin-curl-d5e5630ac95b43bb7f54cc61957fb0bf66757e42.tar.bz2 |
small cleanup in header file includes
-rw-r--r-- | src/check_curl.c | 6 | ||||
-rw-r--r-- | src/curlhelper.c | 6 | ||||
-rw-r--r-- | src/curlhelper.h | 2 | ||||
-rw-r--r-- | 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 <http://www.gnu.org/licenses/>. */ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> +#include <stdio.h> /* for printf */ +#include <stdlib.h> /* for exit */ +#include <string.h> /* for strstr */ #include <curl/curl.h> #include <curl/types.h> 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 <http://www.gnu.org/licenses/>. */ -#define _XOPEN_SOURCE 600 -#include <string.h> -#include <stdlib.h> -#include <sys/types.h> +#include <string.h> /* for memcpy */ +#include <stdlib.h> /* 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 <sys/types.h> /* 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 <http://www.gnu.org/licenses/>. */ -#define _XOPEN_SOURCE 600 -#include <string.h> -#include <stdlib.h> -#include <sys/types.h> - #include "utils.h" void remove_newlines( char *s ) { |