aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
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;
}