aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2017-03-29 23:23:56 +0200
committerAndy Polyakov <appro@openssl.org>2017-03-30 19:34:18 +0200
commit7d672984f4dc6a87cb0c7d99279c6175fcdc3ad0 (patch)
treee633b0c1c932caff44afe776cf9d1d2b13e0aeb9
parent74d9519a68ee484db584aebc6ab6b2cb4bf98b2a (diff)
downloadopenssl-7d672984f4dc6a87cb0c7d99279c6175fcdc3ad0.tar.gz
apps/*.c: switch to platform-neutral format modifiers in BIO_print calls.
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3083)
-rw-r--r--apps/enc.c4
-rw-r--r--apps/s_cb.c4
-rw-r--r--apps/s_client.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/apps/enc.c b/apps/enc.c
index 30c3c6329e..a1b2b3cac8 100644
--- a/apps/enc.c
+++ b/apps/enc.c
@@ -548,8 +548,8 @@ int enc_main(int argc, char **argv)
ret = 0;
if (verbose) {
- BIO_printf(bio_err, "bytes read :%8"PRIu64"\n", BIO_number_read(in));
- BIO_printf(bio_err, "bytes written:%8"PRIu64"\n", BIO_number_written(out));
+ BIO_printf(bio_err, "bytes read :%8ju\n", BIO_number_read(in));
+ BIO_printf(bio_err, "bytes written:%8ju\n", BIO_number_written(out));
}
end:
ERR_print_errors(bio_err);
diff --git a/apps/s_cb.c b/apps/s_cb.c
index 4400580119..f395a2a278 100644
--- a/apps/s_cb.c
+++ b/apps/s_cb.c
@@ -1042,8 +1042,8 @@ static char *hexencode(const unsigned char *data, size_t len)
int ilen = (int) outlen;
if (outlen < len || ilen < 0 || outlen != (size_t)ilen) {
- BIO_printf(bio_err, "%s: %" PRIu64 "-byte buffer too large to hexencode\n",
- opt_getprog(), (uint64_t)len);
+ BIO_printf(bio_err, "%s: %zu-byte buffer too large to hexencode\n",
+ opt_getprog(), len);
exit(1);
}
cp = out = app_malloc(ilen, "TLSA hex data buffer");
diff --git a/apps/s_client.c b/apps/s_client.c
index fc18da282c..cab7e251de 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -2901,8 +2901,8 @@ static void print_stuff(BIO *bio, SSL *s, int full)
#endif
BIO_printf(bio,
- "---\nSSL handshake has read %" PRIu64
- " bytes and written %" PRIu64 " bytes\n",
+ "---\nSSL handshake has read %ju bytes "
+ "and written %ju bytes\n",
BIO_number_read(SSL_get_rbio(s)),
BIO_number_written(SSL_get_wbio(s)));
}