From: Antonio Borneo Date: Sun, 10 Mar 2013 11:06:09 +0000 (+0800) Subject: Uniform coding style: no {} for single statement X-Git-Tag: v5.00~37 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=20d81995b3feb9f5d05b9916d20be0cbbe58b471;p=users%2Fdwmw2%2Fopenconnect.git Uniform coding style: no {} for single statement Signed-off-by: Antonio Borneo Signed-off-by: David Woodhouse --- diff --git a/cstp.c b/cstp.c index dbe1947c..bb79e7ec 100644 --- a/cstp.c +++ b/cstp.c @@ -610,9 +610,8 @@ static int inflate_and_queue_packet(struct openconnect_info *vpninfo, pkt_sum = buf[len - 1] | (buf[len - 2] << 8) | (buf[len - 3] << 16) | (buf[len - 4] << 24); - if (vpninfo->inflate_adler32 != pkt_sum) { + if (vpninfo->inflate_adler32 != pkt_sum) vpninfo->quit_reason = "Compression (inflate) adler32 failure"; - } vpn_progress(vpninfo, PRG_TRACE, _("Received compressed data packet of %ld bytes\n"), diff --git a/main.c b/main.c index 1cbcb828..dfb7d3be 100644 --- a/main.c +++ b/main.c @@ -541,9 +541,8 @@ int main(int argc, char **argv) case OPT_COOKIE_ON_STDIN: read_stdin(&vpninfo->cookie); /* If the cookie is empty, ignore it */ - if (!*vpninfo->cookie) { + if (!*vpninfo->cookie) vpninfo->cookie = NULL; - } break; case OPT_PASSWORD_ON_STDIN: read_stdin(&vpninfo->password); diff --git a/openssl.c b/openssl.c index 36897f2e..741f5517 100644 --- a/openssl.c +++ b/openssl.c @@ -1241,9 +1241,8 @@ static int check_certificate_expiry(struct openconnect_info *vpninfo) } else { t += vpninfo->cert_expire_warning; i = X509_cmp_time(notAfter, &t); - if (i < 0) { + if (i < 0) reason = _("Client certificate expires soon at"); - } } if (reason) { BIO *bp = BIO_new(BIO_s_mem());