diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client.c | 1 | ||||
-rw-r--r-- | src/command.h | 2 | ||||
-rw-r--r-- | src/msg.h | 2 | ||||
-rw-r--r-- | src/net.h | 2 | ||||
-rw-r--r-- | src/worker.h | 2 | ||||
-rw-r--r-- | src/worker_main.c | 1 |
6 files changed, 5 insertions, 5 deletions
diff --git a/src/client.c b/src/client.c index b321b91..f0c0d3b 100644 --- a/src/client.c +++ b/src/client.c @@ -10,6 +10,7 @@ #include "msg.h" #include "net.h" +#include <stdlib.h> #include <unistd.h> struct client { diff --git a/src/command.h b/src/command.h index dc798d2..d08902e 100644 --- a/src/command.h +++ b/src/command.h @@ -10,7 +10,7 @@ #include "msg.h" -#include <stdlib.h> +#include <stddef.h> typedef int (*cmd_handler)(int conn_fd, const struct msg *request, void *ctx, struct msg **response); @@ -8,7 +8,7 @@ #ifndef __MSG_H__ #define __MSG_H__ -#include <stdlib.h> +#include <stddef.h> struct msg; @@ -8,8 +8,8 @@ #ifndef __NET_H__ #define __NET_H__ +#include <stddef.h> #include <stdint.h> -#include <stdlib.h> int net_bind(const char *port); int net_accept(int fd); diff --git a/src/worker.h b/src/worker.h index 246fd43..736c8b4 100644 --- a/src/worker.h +++ b/src/worker.h @@ -8,8 +8,6 @@ #ifndef __WORKER_H__ #define __WORKER_H__ -#include <pthread.h> - struct settings { char *host; char *port; diff --git a/src/worker_main.c b/src/worker_main.c index eaaab4d..c046ba0 100644 --- a/src/worker_main.c +++ b/src/worker_main.c @@ -10,6 +10,7 @@ #include "worker.h" #include <getopt.h> +#include <stddef.h> static struct settings default_settings(void) { |