diff options
author | June McEnroe <june@causal.agency> | 2020-11-14 11:47:26 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-11-14 11:47:26 -0500 |
commit | 70c3c9156a64c9053978e499328a121757628ed2 (patch) | |
tree | 978a97afca4539be291cd6aec5e8df20e5f44e6b /bounce.c | |
parent | Only send shutdown QUIT and ERROR to registered clients (diff) | |
download | pounce-70c3c9156a64c9053978e499328a121757628ed2.tar.gz pounce-70c3c9156a64c9053978e499328a121757628ed2.zip |
Swap localAccept parameter order
Diffstat (limited to '')
-rw-r--r-- | bounce.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bounce.c b/bounce.c index f460d74..b0cdca2 100644 --- a/bounce.c +++ b/bounce.c @@ -480,9 +480,9 @@ int main(int argc, char *argv[]) { } if (!event.clients[i]) { - int fd; - struct tls *tls = localAccept(&fd, event.fds[i].fd); - if (!tls) { + struct tls *tls; + int fd = localAccept(&tls, event.fds[i].fd); + if (fd < 0) { warn("accept"); continue; } |