%p takes void*, so make sure to cast arguments to void*
authorRichard Levitte <levitte@openssl.org>
Thu, 20 Oct 2016 07:07:06 +0000 (09:07 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 20 Oct 2016 07:07:06 +0000 (09:07 +0200)
This avoids failures when configuring with --strict-warnings

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1749)

apps/s_cb.c

index d1a99a7bd605b4c0fea103783ca3e173d3248df0..7d719543579fcdbae20b25d0561c97b0e2e8d2a1 100644 (file)
@@ -548,12 +548,12 @@ long MS_CALLBACK bio_dump_callback(BIO *bio, int cmd, const char *argp,
 
     if (cmd == (BIO_CB_READ | BIO_CB_RETURN)) {
         BIO_printf(out, "read from %p [%p] (%lu bytes => %ld (0x%lX))\n",
-                   (void *)bio, argp, (unsigned long)argi, ret, ret);
+                   (void *)bio, (void *)argp, (unsigned long)argi, ret, ret);
         BIO_dump(out, argp, (int)ret);
         return (ret);
     } else if (cmd == (BIO_CB_WRITE | BIO_CB_RETURN)) {
         BIO_printf(out, "write to %p [%p] (%lu bytes => %ld (0x%lX))\n",
-                   (void *)bio, argp, (unsigned long)argi, ret, ret);
+                   (void *)bio, (void *)argp, (unsigned long)argi, ret, ret);
         BIO_dump(out, argp, (int)ret);
     }
     return (ret);