From 1604cb4076a92be8d8dd68eeded1401e2e23daf6 Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 8 Apr 2023 17:43:30 +0000 Subject: [PATCH] bn_test: two minor style tweaks --- regress/lib/libcrypto/bn/bn_test.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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); -- 2.20.1