summary refs log tree commit diff
path: root/writef.c
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-02-14 00:17:27 +0300
committerNakidai <nakidai@disroot.org>2026-02-14 00:20:38 +0300
commitde9f2ed4a211f845a0106a8799d093ca4f732696 (patch)
tree4e940b9f1027b351608c70558a9a2f49c050f932 /writef.c
parent834c85d80914007e31657d12d2f22a9cb2cd8624 (diff)
downloadlibreircd-de9f2ed4a211f845a0106a8799d093ca4f732696.tar.gz
libreircd-de9f2ed4a211f845a0106a8799d093ca4f732696.zip
Replace all fd checks with pointer checks
They look cleaner and do the same
Diffstat (limited to 'writef.c')
-rw-r--r--writef.c2
1 files changed, 1 insertions, 1 deletions
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;