aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2016-07-17 17:37:16 -0500
committerBrent Cook <bcook@openbsd.org>2016-07-19 05:48:49 -0500
commit3a193a58d4e1b69d76f3389c4990067ffb436c09 (patch)
tree0990f225e276a9dc80967250251b4831e8d6c50e
parent94532f961964ccc422ab6a17a383176bf00ea911 (diff)
downloadportable-3a193a58d4e1b69d76f3389c4990067ffb436c09.tar.gz
portable-3a193a58d4e1b69d76f3389c4990067ffb436c09.tar.bz2
portable-3a193a58d4e1b69d76f3389c4990067ffb436c09.zip
format 64-bit int portably (windows wants %l64d)
-rw-r--r--patches/ssl_txt.c.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/ssl_txt.c.patch b/patches/ssl_txt.c.patch
new file mode 100644
index 0000000..6f3535f
--- /dev/null
+++ b/patches/ssl_txt.c.patch
@@ -0,0 +1,19 @@
1--- ssl/ssl_txt.orig Sun Jul 17 17:26:59 2016
2+++ ssl/ssl_txt.c Sun Jul 17 17:35:44 2016
3@@ -82,6 +82,7 @@
4 * OTHERWISE.
5 */
6
7+#include <inttypes.h>
8 #include <stdio.h>
9
10 #include <openssl/buffer.h>
11@@ -163,7 +164,7 @@
12 }
13
14 if (x->time != 0) {
15- if (BIO_printf(bp, "\n Start Time: %lld", (long long)x->time) <= 0)
16+ if (BIO_printf(bp, "\n Start Time: %"PRId64, (int64_t)x->time) <= 0)
17 goto err;
18 }
19 if (x->timeout != 0L) {