summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-04-06 07:08:41 +0000
committertb <>2023-04-06 07:08:41 +0000
commit1fc713cc1f1d499ef5e37a149d8bf968e3b122c2 (patch)
tree45aa30bc225b98f5ac4e70aa5746a911e74c9be3
parentb79e08b60aa0ee4d23ee303fdc1ed7b7503d9f38 (diff)
downloadopenbsd-1fc713cc1f1d499ef5e37a149d8bf968e3b122c2.tar.gz
openbsd-1fc713cc1f1d499ef5e37a149d8bf968e3b122c2.tar.bz2
openbsd-1fc713cc1f1d499ef5e37a149d8bf968e3b122c2.zip
Check and assign on one line
-rw-r--r--src/regress/lib/libcrypto/bn/bn_mod_exp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_mod_exp.c b/src/regress/lib/libcrypto/bn/bn_mod_exp.c
index 6b323408c8..5988458ab9 100644
--- a/src/regress/lib/libcrypto/bn/bn_mod_exp.c
+++ b/src/regress/lib/libcrypto/bn/bn_mod_exp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_mod_exp.c,v 1.34 2023/03/29 10:36:14 tb Exp $ */ 1/* $OpenBSD: bn_mod_exp.c,v 1.35 2023/04/06 07:08:41 tb Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2022,2023 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2022,2023 Theo Buehler <tb@openbsd.org>
@@ -77,8 +77,7 @@ bn_print(const char *name, const BIGNUM *bn)
77 size_t len; 77 size_t len;
78 int pad = 0; 78 int pad = 0;
79 79
80 len = strlen(name); 80 if ((len = strlen(name)) < 7)
81 if (len < 7)
82 pad = 6 - len; 81 pad = 6 - len;
83 82
84 fprintf(stderr, "%s: %*s", name, pad, ""); 83 fprintf(stderr, "%s: %*s", name, pad, "");