Stop warning about use of *printf() without a format.

This commit is contained in:
Dr. Stephen Henson 2009-02-15 15:29:59 +00:00
parent a63bf2c53c
commit 0ed6b52687
2 changed files with 3 additions and 3 deletions

View File

@ -247,7 +247,7 @@ static int util_verbose(ENGINE *e, int verbose, BIO *bio_out, const char *indent
/* Now decide on the output */ /* Now decide on the output */
if(xpos == 0) if(xpos == 0)
/* Do an indent */ /* Do an indent */
xpos = BIO_printf(bio_out, indent); xpos = BIO_puts(bio_out, indent);
else else
/* Otherwise prepend a ", " */ /* Otherwise prepend a ", " */
xpos += BIO_printf(bio_out, ", "); xpos += BIO_printf(bio_out, ", ");
@ -258,7 +258,7 @@ static int util_verbose(ENGINE *e, int verbose, BIO *bio_out, const char *indent
(xpos + (int)strlen(name) > line_wrap)) (xpos + (int)strlen(name) > line_wrap))
{ {
BIO_printf(bio_out, "\n"); BIO_printf(bio_out, "\n");
xpos = BIO_printf(bio_out, indent); xpos = BIO_puts(bio_out, indent);
} }
xpos += BIO_printf(bio_out, "%s", name); xpos += BIO_printf(bio_out, "%s", name);
} }

View File

@ -237,7 +237,7 @@ static unsigned int psk_client_cb(SSL *ssl, const char *hint, char *identity,
BIO_printf(bio_c_out, "Received PSK identity hint '%s'\n", hint); BIO_printf(bio_c_out, "Received PSK identity hint '%s'\n", hint);
/* lookup PSK identity and PSK key based on the given identity hint here */ /* lookup PSK identity and PSK key based on the given identity hint here */
ret = BIO_snprintf(identity, max_identity_len, psk_identity); ret = BIO_snprintf(identity, max_identity_len, "%s", psk_identity);
if (ret < 0 || (unsigned int)ret > max_identity_len) if (ret < 0 || (unsigned int)ret > max_identity_len)
goto out_err; goto out_err;
if (c_debug) if (c_debug)