summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/bn/bn_mod_sqrt.c
diff options
context:
space:
mode:
authoranton <>2024-08-23 12:56:26 +0000
committeranton <>2024-08-23 12:56:26 +0000
commit56917f3bcb61bebc42b4cdbb89e6e6bdefe00e06 (patch)
tree82c161d2c7fabe4bd4e52ad455006b0476f08e3e /src/regress/lib/libcrypto/bn/bn_mod_sqrt.c
parent9f36be6501ec7fb1d11687ff58c3e992193af31e (diff)
downloadopenbsd-56917f3bcb61bebc42b4cdbb89e6e6bdefe00e06.tar.gz
openbsd-56917f3bcb61bebc42b4cdbb89e6e6bdefe00e06.tar.bz2
openbsd-56917f3bcb61bebc42b4cdbb89e6e6bdefe00e06.zip
Remove unwanted trailing newlines from err/warn format strings.
Diffstat (limited to 'src/regress/lib/libcrypto/bn/bn_mod_sqrt.c')
-rw-r--r--src/regress/lib/libcrypto/bn/bn_mod_sqrt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_mod_sqrt.c b/src/regress/lib/libcrypto/bn/bn_mod_sqrt.c
index 7ab7905136..345ab4cb61 100644
--- a/src/regress/lib/libcrypto/bn/bn_mod_sqrt.c
+++ b/src/regress/lib/libcrypto/bn/bn_mod_sqrt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_mod_sqrt.c,v 1.10 2023/04/11 10:10:52 tb Exp $ */ 1/* $OpenBSD: bn_mod_sqrt.c,v 1.11 2024/08/23 12:56:26 anton 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>
@@ -2865,7 +2865,7 @@ mod_sqrt_test(struct mod_sqrt_test *test, BN_CTX *ctx)
2865 if (!BN_hex2bn(&want, test->sqrt)) 2865 if (!BN_hex2bn(&want, test->sqrt))
2866 errx(1, "BN_hex2bn(%s)", test->sqrt); 2866 errx(1, "BN_hex2bn(%s)", test->sqrt);
2867 if (!BN_mod_sub(diff, want, got, p, ctx)) 2867 if (!BN_mod_sub(diff, want, got, p, ctx))
2868 errx(1, "BN_mod_sub() failed\n"); 2868 errx(1, "BN_mod_sub() failed");
2869 2869
2870 if (!BN_is_zero(diff)) { 2870 if (!BN_is_zero(diff)) {
2871 fprintf(stderr, "a: %s\n", test->a); 2871 fprintf(stderr, "a: %s\n", test->a);