summaryrefslogtreecommitdiffstats
path: root/apps/enc.c
diff options
context:
space:
mode:
authorAdam Eijdenberg <adam.eijdenberg@gmail.com>2015-08-04 19:08:22 -0700
committerEmilia Kasper <emilia@openssl.org>2015-09-01 20:18:46 +0200
commitfb029cebaeb6b0dbdb05a26a515e38a52a3c0fa1 (patch)
tree36dea3d54c14d8e5bbefdd9d26eb5f6825ddb3d3 /apps/enc.c
parent08a721ac613d69217b474a61882971ae9d4586d1 (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/enc.c')
-rw-r--r--apps/enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/enc.c b/apps/enc.c
index 628142a9f4..18fcb9505d 100644
--- a/apps/enc.c
+++ b/apps/enc.c
@@ -567,8 +567,8 @@ int enc_main(int argc, char **argv)
ret = 0;
if (verbose) {
- BIO_printf(bio_err, "bytes read :%8ld\n", BIO_number_read(in));
- BIO_printf(bio_err, "bytes written:%8ld\n", BIO_number_written(out));
+ 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));
}
end:
ERR_print_errors(bio_err);