diff options
Diffstat (limited to 'src')
-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 ) { |