diff options
author | Theo Buehler <tb@openbsd.org> | 2024-07-13 11:05:24 -0600 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-07-13 11:05:24 -0600 |
commit | 9a4c02fdb6f2f7376c6c54119eccd366597a69d6 (patch) | |
tree | 840bc20079e86955d5c71dbd308348a5d5841857 | |
parent | 2eb32c2e9b9a687d70e454b2d05e54ca913f8014 (diff) | |
download | portable-9a4c02fdb6f2f7376c6c54119eccd366597a69d6.tar.gz portable-9a4c02fdb6f2f7376c6c54119eccd366597a69d6.tar.bz2 portable-9a4c02fdb6f2f7376c6c54119eccd366597a69d6.zip |
Simplify speed.c diff
-rw-r--r-- | patches/speed.c.patch | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/patches/speed.c.patch b/patches/speed.c.patch index 1d6d021..c29ef4d 100644 --- a/patches/speed.c.patch +++ b/patches/speed.c.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | --- apps/openssl/speed.c.orig Sat Jul 13 10:21:42 2024 | 1 | --- apps/openssl/speed.c.orig Sat Jul 13 11:02:51 2024 |
2 | +++ apps/openssl/speed.c Sat Jul 13 10:27:25 2024 | 2 | +++ apps/openssl/speed.c Sat Jul 13 10:27:25 2024 |
3 | @@ -161,7 +161,16 @@ | 3 | @@ -161,7 +161,16 @@ |
4 | pkey_print_message(const char *str, const char *str2, | 4 | pkey_print_message(const char *str, const char *str2, |
@@ -17,19 +17,17 @@ | |||
17 | 17 | ||
18 | #define ALGOR_NUM 32 | 18 | #define ALGOR_NUM 32 |
19 | #define SIZE_NUM 5 | 19 | #define SIZE_NUM 5 |
20 | @@ -430,9 +439,11 @@ | 20 | @@ -430,8 +439,10 @@ |
21 | const EVP_CIPHER *evp_cipher = NULL; | 21 | const EVP_CIPHER *evp_cipher = NULL; |
22 | const EVP_MD *evp_md = NULL; | 22 | const EVP_MD *evp_md = NULL; |
23 | int decrypt = 0; | 23 | int decrypt = 0; |
24 | +#ifndef _WIN32 | 24 | +#ifndef _WIN32 |
25 | int multi = 0; | 25 | int multi = 0; |
26 | - const char *errstr = NULL; | ||
27 | struct sigaction sa; | 26 | struct sigaction sa; |
28 | +#endif | 27 | +#endif |
29 | + const char *errstr = NULL; | 28 | const char *errstr = NULL; |
30 | 29 | ||
31 | if (pledge("stdio proc", NULL) == -1) { | 30 | if (pledge("stdio proc", NULL) == -1) { |
32 | perror("pledge"); | ||
33 | @@ -506,6 +517,7 @@ | 31 | @@ -506,6 +517,7 @@ |
34 | decrypt = 1; | 32 | decrypt = 1; |
35 | j--; /* Otherwise, -decrypt gets confused with an | 33 | j--; /* Otherwise, -decrypt gets confused with an |