logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0005-Use-void-for-printf-p-format-specifier.patch (789B)


  1. From 5825db2081409ded9b815461c4ff05839215baa5 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Fri, 3 Apr 2026 02:27:29 -0700
  4. Subject: [PATCH] Use void * for printf %p format specifier
  5. ---
  6. crypto/bio/bio_cb.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/crypto/bio/bio_cb.c b/crypto/bio/bio_cb.c
  9. index 990cb20..35f9f18 100644
  10. --- a/crypto/bio/bio_cb.c
  11. +++ b/crypto/bio/bio_cb.c
  12. @@ -78,7 +78,7 @@ BIO_debug_callback(BIO *bio, int cmd, const char *argp, int argi, long argl,
  13. if (BIO_CB_RETURN & cmd)
  14. r = ret;
  15. - nbuf = snprintf(buf, sizeof(buf), "BIO[%p]: ", bio);
  16. + nbuf = snprintf(buf, sizeof(buf), "BIO[%p]: ", (void *)bio);
  17. if (nbuf < 0)
  18. nbuf = 0; /* Ignore error; continue printing. */
  19. if (nbuf >= sizeof(buf))
  20. --
  21. 2.49.0