aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-05-13 14:41:45 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-05-13 14:41:45 +0200
commit6036bca03b664ab423537d0644d473c47c5acddb (patch)
treea64a0b114b15d01f09bec681628c9a487a0489f2 /src
parentrename Makefile parameters & update README (diff)
downloadcimple-6036bca03b664ab423537d0644d473c47c5acddb.tar.gz
cimple-6036bca03b664ab423537d0644d473c47c5acddb.zip
fix unnecessary #include-s
Diffstat (limited to '')
-rw-r--r--src/client.c1
-rw-r--r--src/command.h2
-rw-r--r--src/msg.h2
-rw-r--r--src/net.h2
-rw-r--r--src/worker.h2
-rw-r--r--src/worker_main.c1
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);
diff --git a/src/msg.h b/src/msg.h
index 2f631fc..e6541f4 100644
--- a/src/msg.h
+++ b/src/msg.h
@@ -8,7 +8,7 @@
#ifndef __MSG_H__
#define __MSG_H__
-#include <stdlib.h>
+#include <stddef.h>
struct msg;
diff --git a/src/net.h b/src/net.h
index 185f10b..84968cb 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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)
{