diff options
author | tb <> | 2023-04-06 07:08:41 +0000 |
---|---|---|
committer | tb <> | 2023-04-06 07:08:41 +0000 |
commit | 816f453908f57511dfd082969d472b209d88eeeb (patch) | |
tree | 45aa30bc225b98f5ac4e70aa5746a911e74c9be3 | |
parent | af9fe1662ba8b5e7cb7ef15b553da40fe5306ae5 (diff) | |
download | openbsd-816f453908f57511dfd082969d472b209d88eeeb.tar.gz openbsd-816f453908f57511dfd082969d472b209d88eeeb.tar.bz2 openbsd-816f453908f57511dfd082969d472b209d88eeeb.zip |
Check and assign on one line
-rw-r--r-- | src/regress/lib/libcrypto/bn/bn_mod_exp.c | 5 |
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, ""); |