From de9f2ed4a211f845a0106a8799d093ca4f732696 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sat, 14 Feb 2026 00:17:27 +0300 Subject: Replace all fd checks with pointer checks They look cleaner and do the same --- writef.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'writef.c') diff --git a/writef.c b/writef.c index a2283b9..315eaa9 100644 --- a/writef.c +++ b/writef.c @@ -60,7 +60,7 @@ writechanf(const struct Peer *except, const struct Channel *channel, const char count = 0; for (i = 0; i < channel->peers_c; ++i) - if (!except || channel->peers[i].p->fd != except->fd) + if (!except || channel->peers[i].p != except) count += write(channel->peers[i].p->fd, buf, written) == written; return count; -- cgit 1.4.1