aboutsummaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2016-07-17 17:37:16 -0500
committerBrent Cook <bcook@openbsd.org>2016-07-17 17:37:16 -0500
commitfa435db8df9fca0220a69343ffed0aa6d1172097 (patch)
tree35034acbf76b00b19f89680882533f89aaf380ff /patches
parent618c32e4a18a468b60f6cb7492e860edb8346b29 (diff)
downloadportable-fa435db8df9fca0220a69343ffed0aa6d1172097.tar.gz
portable-fa435db8df9fca0220a69343ffed0aa6d1172097.tar.bz2
portable-fa435db8df9fca0220a69343ffed0aa6d1172097.zip
format 64-bit int portably (windows wants %l64d)
Diffstat (limited to 'patches')
-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) {