Skip to content

Commit

Permalink
Uniform coding style: no {} for single statement
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
borneoa authored and David Woodhouse committed Mar 10, 2013
1 parent 6ea62c5 commit 20d8199
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions cstp.c
Expand Up @@ -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"),
Expand Down
3 changes: 1 addition & 2 deletions main.c
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions openssl.c
Expand Up @@ -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());
Expand Down

0 comments on commit 20d8199

Please sign in to comment.