diff options
Diffstat (limited to 'src/client.c')
-rw-r--r-- | src/client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.c b/src/client.c index e42019c..be46ad1 100644 --- a/src/client.c +++ b/src/client.c @@ -1,4 +1,5 @@ #include "client.h" +#include "log.h" #include "msg.h" #include "net.h" @@ -15,7 +16,7 @@ int client_create(struct client *client, const struct settings *settings) void client_destroy(const struct client *client) { - close(client->fd); + check_errno(close(client->fd), "close"); } int client_main(const struct client *client, int argc, char *argv[]) |