diff options
| author | Nakidai <nakidai@disroot.org> | 2026-02-14 00:17:27 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2026-02-14 00:20:38 +0300 |
| commit | de9f2ed4a211f845a0106a8799d093ca4f732696 (patch) | |
| tree | 4e940b9f1027b351608c70558a9a2f49c050f932 /user.c | |
| parent | 834c85d80914007e31657d12d2f22a9cb2cd8624 (diff) | |
| download | libreircd-de9f2ed4a211f845a0106a8799d093ca4f732696.tar.gz libreircd-de9f2ed4a211f845a0106a8799d093ca4f732696.zip | |
Replace all fd checks with pointer checks
They look cleaner and do the same
Diffstat (limited to 'user.c')
| -rw-r--r-- | user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/user.c b/user.c index 0932b0e..638f061 100644 --- a/user.c +++ b/user.c @@ -98,7 +98,7 @@ user_remove(size_t pid) for (i = 0; i < last->channels_c; ++i) { for (j = 0; j < last->channels[i]->peers_c; ++j) - if (last->channels[i]->peers[j].p->fd == last->fd) + if (last->channels[i]->peers[j].p == last) break; if (j == last->channels[i]->peers_c) { |