aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/msg.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-08 23:57:49 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-09 00:01:11 +0200
commitfb80276084a9adc0014b1008f8bf8253f126293b (patch)
tree2951be23576c32ddcda656c04c98539591981622 /src/msg.c
parentdocker: bump base image (diff)
downloadcimple-fb80276084a9adc0014b1008f8bf8253f126293b.tar.gz
cimple-fb80276084a9adc0014b1008f8bf8253f126293b.zip
add {file,net}_close as a wrapper to close(2)
Diffstat (limited to '')
-rw-r--r--src/msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msg.c b/src/msg.c
index 918ae43..7bce01d 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -245,7 +245,7 @@ int msg_connect_and_communicate(const char *host, const char *port, const struct
goto close;
close:
- log_errno_if(close(fd), "close");
+ net_close(fd);
return ret;
}