From 4df55b356d79e0c5da4688867d741127b234da6a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 30 Jun 2023 01:23:18 +0200 Subject: fix function names in error messages --- src/event_loop.c | 2 +- src/net.c | 2 +- src/tcp_server.c | 2 +- 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; } -- cgit v1.2.3