From 8a180592112f4888f633edb51771f3fbf89f80b6 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 3 Nov 2013 06:51:47 +0100 Subject: [PATCH] tlsproxyhelper.c: Minor style fix. --- lib/tlsproxyhelper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.43.2