diff options
author | bcook <> | 2014-12-08 03:54:19 +0000 |
---|---|---|
committer | bcook <> | 2014-12-08 03:54:19 +0000 |
commit | c52b1aafaaead44ed582498ae01421c9181a789a (patch) | |
tree | c4b61dbcd40b0dfc5de640b01731b47f50993676 /src | |
parent | 7e1777887543b9cec82799201142b404943cee1c (diff) | |
download | openbsd-c52b1aafaaead44ed582498ae01421c9181a789a.tar.gz openbsd-c52b1aafaaead44ed582498ae01421c9181a789a.tar.bz2 openbsd-c52b1aafaaead44ed582498ae01421c9181a789a.zip |
Use platform-defined method of printing a pointer.
Casting a pointer to an unsigned long discards bits on an LLP64 system.
ok deraadt@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/bio/bio_cb.c | 4 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/bio/bio_cb.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bio/bio_cb.c b/src/lib/libcrypto/bio/bio_cb.c index 7d1f025452..ab0e3a92ce 100644 --- a/src/lib/libcrypto/bio/bio_cb.c +++ b/src/lib/libcrypto/bio/bio_cb.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_cb.c,v 1.15 2014/07/11 08:44:47 jsing Exp $ */ | 1 | /* $OpenBSD: bio_cb.c,v 1.16 2014/12/08 03:54:19 bcook Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -76,7 +76,7 @@ BIO_debug_callback(BIO *bio, int cmd, const char *argp, int argi, long argl, | |||
76 | if (BIO_CB_RETURN & cmd) | 76 | if (BIO_CB_RETURN & cmd) |
77 | r = ret; | 77 | r = ret; |
78 | 78 | ||
79 | snprintf(buf, sizeof buf, "BIO[%08lX]:", (unsigned long)bio); | 79 | snprintf(buf, sizeof buf, "BIO[%p]:", bio); |
80 | p = &(buf[14]); | 80 | p = &(buf[14]); |
81 | p_maxlen = sizeof buf - 14; | 81 | p_maxlen = sizeof buf - 14; |
82 | switch (cmd) { | 82 | switch (cmd) { |
diff --git a/src/lib/libssl/src/crypto/bio/bio_cb.c b/src/lib/libssl/src/crypto/bio/bio_cb.c index 7d1f025452..ab0e3a92ce 100644 --- a/src/lib/libssl/src/crypto/bio/bio_cb.c +++ b/src/lib/libssl/src/crypto/bio/bio_cb.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_cb.c,v 1.15 2014/07/11 08:44:47 jsing Exp $ */ | 1 | /* $OpenBSD: bio_cb.c,v 1.16 2014/12/08 03:54:19 bcook Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -76,7 +76,7 @@ BIO_debug_callback(BIO *bio, int cmd, const char *argp, int argi, long argl, | |||
76 | if (BIO_CB_RETURN & cmd) | 76 | if (BIO_CB_RETURN & cmd) |
77 | r = ret; | 77 | r = ret; |
78 | 78 | ||
79 | snprintf(buf, sizeof buf, "BIO[%08lX]:", (unsigned long)bio); | 79 | snprintf(buf, sizeof buf, "BIO[%p]:", bio); |
80 | p = &(buf[14]); | 80 | p = &(buf[14]); |
81 | p_maxlen = sizeof buf - 14; | 81 | p_maxlen = sizeof buf - 14; |
82 | switch (cmd) { | 82 | switch (cmd) { |