diff options
author | 2015-02-25 15:31:25 +0000 | |
---|---|---|
committer | 2015-02-25 15:31:25 +0000 | |
commit | 47ffb2fd32b5b180e21d741522897db87c4a6d8e (patch) | |
tree | 7df377ba5f8f74bf31fc6bf6896aa80a747dc7b3 | |
parent | Avoid NULL pointer deref in hashinfo_free() when calling from error paths. (diff) | |
download | wireguard-openbsd-47ffb2fd32b5b180e21d741522897db87c4a6d8e.tar.xz wireguard-openbsd-47ffb2fd32b5b180e21d741522897db87c4a6d8e.zip |
Trivial fix for test progress output.
Remove unneeded dangling else, compound statements on a single line.
-rw-r--r-- | regress/lib/libcrypto/sha512/sha512test.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/regress/lib/libcrypto/sha512/sha512test.c b/regress/lib/libcrypto/sha512/sha512test.c index bffec0f9384..453be517b0c 100644 --- a/regress/lib/libcrypto/sha512/sha512test.c +++ b/regress/lib/libcrypto/sha512/sha512test.c @@ -104,8 +104,9 @@ main(int argc, char **argv) { fflush(stdout); fprintf(stderr, "\nTEST 1 of 3 failed.\n"); return 1; - } else - fprintf(stdout, "."); fflush(stdout); + } + fprintf(stdout, "."); + fflush(stdout); EVP_Digest( "abcdefgh""bcdefghi""cdefghij""defghijk" @@ -146,7 +147,8 @@ main(int argc, char **argv) { fprintf(stdout, "."); fflush(stdout); - fprintf(stdout, " passed.\n"); fflush(stdout); + fprintf(stdout, " passed.\n"); + fflush(stdout); fprintf(stdout, "Testing SHA-384 "); @@ -191,7 +193,8 @@ main(int argc, char **argv) { fprintf(stdout, "."); fflush(stdout); - fprintf(stdout, " passed.\n"); fflush(stdout); + fprintf(stdout, " passed.\n"); + fflush(stdout); return 0; } |