commit 3931a8a4404d58250d0d16467474bfba2cc215c2 from: Stefan Sperling date: Fri Feb 03 20:58:25 2023 UTC rename a function for clarity commit - ac8bf7dc9ad71b20ffe81ce80b7df061c710ffa7 commit + 3931a8a4404d58250d0d16467474bfba2cc215c2 blob - 6e5a1fefead2c988b80631336d106254007434f7 blob + d7e43c48876932a301c2aa803f93172a823359ec --- gotd/session.c +++ gotd/session.c @@ -1001,7 +1001,7 @@ send_packfile(struct gotd_session_client *client) } static void -session_dispatch_listener(int fd, short events, void *arg) +session_dispatch_client(int fd, short events, void *arg) { struct gotd_imsgev *iev = arg; struct imsgbuf *ibuf = &iev->ibuf; @@ -1274,11 +1274,11 @@ recv_connect(struct imsg *imsg) client->egid = iconnect.egid; imsg_init(&client->iev.ibuf, client->fd); - client->iev.handler = session_dispatch_listener; + client->iev.handler = session_dispatch_client; client->iev.events = EV_READ; client->iev.handler_arg = NULL; event_set(&client->iev.ev, client->iev.ibuf.fd, EV_READ, - session_dispatch_listener, &client->iev); + session_dispatch_client, &client->iev); gotd_imsg_event_add(&client->iev); evtimer_set(&client->tmo, gotd_request_timeout, client);