From: tb Date: Sat, 8 Apr 2023 17:43:30 +0000 (+0000) Subject: bn_test: two minor style tweaks X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1604cb4076a92be8d8dd68eeded1401e2e23daf6;p=openbsd bn_test: two minor style tweaks --- diff --git a/regress/lib/libcrypto/bn/bn_test.c b/regress/lib/libcrypto/bn/bn_test.c index be790bc956e..ed0ddabae0c 100644 --- a/regress/lib/libcrypto/bn/bn_test.c +++ b/regress/lib/libcrypto/bn/bn_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_test.c,v 1.13 2023/04/07 22:36:38 tb Exp $ */ +/* $OpenBSD: bn_test.c,v 1.14 2023/04/08 17:43:30 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -167,13 +167,10 @@ main(int argc, char *argv[]) argv++; } - - ctx = BN_CTX_new(); - if (ctx == NULL) + if ((ctx = BN_CTX_new()) == NULL) exit(1); - out = BIO_new(BIO_s_file()); - if (out == NULL) + if ((out = BIO_new(BIO_s_file())) == NULL) exit(1); if (outfile == NULL) { BIO_set_fp(out, stdout, BIO_NOCLOSE);