~sircmpwn/himitsu-devel

himitsu: cmd/himitsud: correct serv.pollfd offset v1 APPLIED

Alexey Yerin: 1
 cmd/himitsud: correct serv.pollfd offset

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/himitsu-devel/patches/33008/mbox | git am -3
Learn more about email & git

[PATCH himitsu] cmd/himitsud: correct serv.pollfd offset Export this patch

It also has a set of reserved pollfds that we shouldn't override.
---
 cmd/himitsud/client.ha | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/himitsud/client.ha b/cmd/himitsud/client.ha
index 516c23d..3303ebf 100644
--- a/cmd/himitsud/client.ha
+++ b/cmd/himitsud/client.ha
@@ -30,7 +30,7 @@ fn disconnect(c: *client) void = {
	delete(serv.clients[i]);
	delete(serv.pollfd[i + POLLFD_RESERVED]);
	for (i < len(serv.clients); i += 1) {
		serv.clients[i].pollfd = &serv.pollfd[i];
		serv.clients[i].pollfd = &serv.pollfd[i + POLLFD_RESERVED];
	};

	serv.disconnected = true;
-- 
2.36.1
Thanks!

To git@git.sr.ht:~sircmpwn/himitsu
   ff15204..7c289e2  master -> master