summary refs log tree commit diff
path: root/bounce.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-10-25 16:27:24 -0400
committerJune McEnroe <june@causal.agency>2019-10-25 16:27:24 -0400
commitffbf1635f5be94eda4ee857d51a51a1564235f5d (patch)
treef1e5cfd2feee4af202a3d2c40c8d0e0014c9bc9b /bounce.c
parentUse produce/consume words for ring buffer (diff)
downloadpounce-ffbf1635f5be94eda4ee857d51a51a1564235f5d.tar.gz
pounce-ffbf1635f5be94eda4ee857d51a51a1564235f5d.zip
Clean up listen API
Diffstat (limited to '')
-rw-r--r--bounce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bounce.c b/bounce.c
index 1907584..ad346a0 100644
--- a/bounce.c
+++ b/bounce.c
@@ -137,8 +137,8 @@ int main(int argc, char *argv[]) {
 		for (size_t i = 0; i < event.len; ++i) {
 			if (!event.fds[i].revents) continue;
 			if (i < binds) {
-				struct tls *tls;
-				int fd = listenAccept(&tls, event.fds[i].fd);
+				int fd;
+				struct tls *tls = listenAccept(&fd, event.fds[i].fd);
 				eventAdd(fd, clientAlloc(tls));
 				continue;
 			}