aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-30 01:23:18 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-30 01:23:18 +0200
commit4df55b356d79e0c5da4688867d741127b234da6a (patch)
tree4a7a744a12274f24ec27c3f250e47158bab609c7
parentuse __WNOTHREAD w/ waitpid (diff)
downloadcimple-4df55b356d79e0c5da4688867d741127b234da6a.tar.gz
cimple-4df55b356d79e0c5da4688867d741127b234da6a.zip
fix function names in error messages
Diffstat (limited to '')
-rw-r--r--src/event_loop.c2
-rw-r--r--src/net.c2
-rw-r--r--src/tcp_server.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/event_loop.c b/src/event_loop.c
index 2744677..93b67f2 100644
--- a/src/event_loop.c
+++ b/src/event_loop.c
@@ -31,7 +31,7 @@ static struct event_fd *event_fd_create(int fd, short events, event_handler hand
{
struct event_fd *res = calloc(1, sizeof(struct event_fd));
if (!res) {
- log_errno("malloc");
+ log_errno("calloc");
return NULL;
}
diff --git a/src/net.c b/src/net.c
index e102395..1484cfb 100644
--- a/src/net.c
+++ b/src/net.c
@@ -98,7 +98,7 @@ int net_accept(int fd)
ret = accept4(fd, NULL, NULL, flags);
if (ret < 0) {
- log_errno("accept");
+ log_errno("accept4");
return ret;
}
diff --git a/src/tcp_server.c b/src/tcp_server.c
index d763a53..fe55e4f 100644
--- a/src/tcp_server.c
+++ b/src/tcp_server.c
@@ -30,7 +30,7 @@ int tcp_server_create(struct tcp_server **_server, const char *port,
struct tcp_server *server = calloc(1, sizeof(struct tcp_server));
if (!server) {
- log_errno("malloc");
+ log_errno("calloc");
return -1;
}