diff options
author | June McEnroe <june@causal.agency> | 2019-10-25 16:27:24 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-10-25 16:27:24 -0400 |
commit | ffbf1635f5be94eda4ee857d51a51a1564235f5d (patch) | |
tree | f1e5cfd2feee4af202a3d2c40c8d0e0014c9bc9b /bounce.c | |
parent | Use produce/consume words for ring buffer (diff) | |
download | pounce-ffbf1635f5be94eda4ee857d51a51a1564235f5d.tar.gz pounce-ffbf1635f5be94eda4ee857d51a51a1564235f5d.zip |
Clean up listen API
Diffstat (limited to '')
-rw-r--r-- | bounce.c | 4 |
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; } |