diff options
author | Adam Eijdenberg <adam.eijdenberg@gmail.com> | 2015-08-04 19:08:22 -0700 |
---|---|---|
committer | Emilia Kasper <emilia@openssl.org> | 2015-09-01 20:18:46 +0200 |
commit | fb029cebaeb6b0dbdb05a26a515e38a52a3c0fa1 (patch) | |
tree | 36dea3d54c14d8e5bbefdd9d26eb5f6825ddb3d3 /apps/s_client.c | |
parent | 08a721ac613d69217b474a61882971ae9d4586d1 (diff) |
RT3984: Fix clang compiler warning on Mac OS X where %ld is used for uint64_t.
clang suggests %llu instead, but it isn't clear that is portable on
all platforms.
C99 and above define a handy macro for us, so we try to use that
definition and fall back to current definition if needed (though we
switch to 'u' for unsigned).
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'apps/s_client.c')
-rw-r--r-- | apps/s_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index 2b69355944..819cff344a 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -2092,7 +2092,7 @@ static void print_stuff(BIO *bio, SSL *s, int full) ssl_print_tmp_key(bio, s); BIO_printf(bio, - "---\nSSL handshake has read %ld bytes and written %ld bytes\n", + "---\nSSL handshake has read %"PRIu64" bytes and written %"PRIu64" bytes\n", BIO_number_read(SSL_get_rbio(s)), BIO_number_written(SSL_get_wbio(s))); } |