From: Simon Ruderich Date: Sun, 3 Nov 2013 05:51:47 +0000 (+0100) Subject: tlsproxyhelper.c: Minor style fix. X-Git-Url: https://ruderich.org/simon/gitweb/?p=tlsproxy%2Ftlsproxy.git;a=commitdiff_plain;h=8a180592112f4888f633edb51771f3fbf89f80b6 tlsproxyhelper.c: Minor style fix. --- 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();