From 7229eee4b507ab14f7553a14cba4f009a716bcde Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 14 Nov 2020 11:24:55 -0500 Subject: Make struct Client public --- bounce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bounce.c') diff --git a/bounce.c b/bounce.c index 5b5e524..0354bf5 100644 --- a/bounce.c +++ b/bounce.c @@ -493,7 +493,7 @@ int main(int argc, char *argv[]) { struct Client *client = event.clients[i]; if (revents & POLLOUT) clientConsume(client); if (revents & POLLIN) clientRecv(client); - if (clientError(client) || revents & (POLLHUP | POLLERR)) { + if (client->error || revents & (POLLHUP | POLLERR)) { clientFree(client); eventRemove(i); } -- cgit 1.4.1