X-Git-Url: https://ruderich.org/simon/gitweb/?p=tlsproxy%2Ftlsproxy.git;a=blobdiff_plain;f=lib%2Ftlsproxyhelper.c;h=1281dd86590bb6f09306cb15acbba3e516ebfde9;hp=53dc9e8e0b9b4e81cc38c2abb1e66d5aa38d7b9c;hb=8a180592112f4888f633edb51771f3fbf89f80b6;hpb=418f9d30e80201a64b9b9dd0f85616a6186cb15c diff --git a/lib/tlsproxyhelper.c b/lib/tlsproxyhelper.c index 53dc9e8..1281dd8 100644 --- a/lib/tlsproxyhelper.c +++ b/lib/tlsproxyhelper.c @@ -254,9 +254,9 @@ static int poll_for(int sockfd, int mode) { fds[0].fd = sockfd; fds[0].events = POLLERR | POLLHUP; /* Either poll for read or write possibility. */ - if (1 == mode) { + if (mode == 1) { fds[0].events |= POLLIN | POLLPRI; - } else if (0 == mode) { + } else if (mode == 0) { fds[0].events |= POLLOUT; } else { abort();