From c7df845a0d1fc4bc2b13a10114f8f08d90bbbe89 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 8 Apr 2023 17:43:30 +0000 Subject: bn_test: two minor style tweaks --- src/regress/lib/libcrypto/bn/bn_test.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/regress/lib/libcrypto/bn/bn_test.c b/src/regress/lib/libcrypto/bn/bn_test.c index be790bc956..ed0ddabae0 100644 --- a/src/regress/lib/libcrypto/bn/bn_test.c +++ b/src/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); -- cgit v1.2.3-55-g6feb