summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-12-19 22:20:39 +0200
committerTimo Teräs <timo.teras@iki.fi>2013-12-19 22:20:39 +0200
commit7efc2ebeda4414bf3c633a6cf86b49c033973f52 (patch)
tree212a30c1355282dfb103448d0a41073a8f7f9a68
parentc43e15006ee6f36f74de12928687f16c8338eadf (diff)
downloadsquark-7efc2ebeda4414bf3c633a6cf86b49c033973f52.tar.bz2
squark-7efc2ebeda4414bf3c633a6cf86b49c033973f52.tar.xz
all: fix #includes for strict compliance
-rw-r--r--src/authdb.c3
-rw-r--r--src/blob.c2
-rw-r--r--src/blob.h1
3 files changed, 4 insertions, 2 deletions
diff --git a/src/authdb.c b/src/authdb.c
index a0c0478..b9d38c8 100644
--- a/src/authdb.c
+++ b/src/authdb.c
@@ -1,7 +1,8 @@
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
-#include <malloc.h>
+#include <stdlib.h>
+#include <stdio.h>
#include <sched.h>
#include <fcntl.h>
#include <ctype.h>
diff --git a/src/blob.c b/src/blob.c
index a6ccc62..c526d9b 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -1,6 +1,6 @@
#include <time.h>
#include <ctype.h>
-#include <malloc.h>
+#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
diff --git a/src/blob.h b/src/blob.h
index 971ce61..6a8e51c 100644
--- a/src/blob.h
+++ b/src/blob.h
@@ -2,6 +2,7 @@
#define BLOB_H
#include <string.h>
+#include <time.h>
struct in_addr;