From 710069c19ee1795dfd614a4ba683d07e1b8e6f81 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 12 Aug 2007 17:44:32 +0000 Subject: Fix warnings. --- apps/ocsp.c | 2 +- apps/rand.c | 2 +- apps/req.c | 2 +- apps/s_cb.c | 4 ++-- apps/s_client.c | 14 +++++++------- apps/s_server.c | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) (limited to 'apps') diff --git a/apps/ocsp.c b/apps/ocsp.c index 127eef6681..219dc2f359 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -1244,7 +1244,7 @@ static int send_ocsp_response(BIO *cbio, OCSP_RESPONSE *resp) return 0; BIO_printf(cbio, http_resp, i2d_OCSP_RESPONSE(resp, NULL)); i2d_OCSP_RESPONSE_bio(cbio, resp); - BIO_flush(cbio); + (void)BIO_flush(cbio); return 1; } diff --git a/apps/rand.c b/apps/rand.c index a893896033..c3b26c466d 100644 --- a/apps/rand.c +++ b/apps/rand.c @@ -213,7 +213,7 @@ int MAIN(int argc, char **argv) BIO_write(out, buf, chunk); num -= chunk; } - BIO_flush(out); + (void)BIO_flush(out); app_RAND_write_file(NULL, bio_err); ret = 0; diff --git a/apps/req.c b/apps/req.c index 745ba7035f..cd59fe077e 100644 --- a/apps/req.c +++ b/apps/req.c @@ -1648,7 +1648,7 @@ static EVP_PKEY_CTX *set_keygen_ctx(BIO *err, const char *gstr, int *pkey_type, if (!param) { X509 *x; - BIO_reset(pbio); + (void)BIO_reset(pbio); x = PEM_read_bio_X509(pbio, NULL, NULL, NULL); if (x) { diff --git a/apps/s_cb.c b/apps/s_cb.c index fb33dee287..31616bb66d 100644 --- a/apps/s_cb.c +++ b/apps/s_cb.c @@ -590,7 +590,7 @@ void MS_CALLBACK msg_cb(int write_p, int version, int content_type, const void * BIO_printf(bio, " ..."); BIO_printf(bio, "\n"); } - BIO_flush(bio); + (void)BIO_flush(bio); } void MS_CALLBACK tlsext_cb(SSL *s, int client_server, int type, @@ -648,6 +648,6 @@ void MS_CALLBACK tlsext_cb(SSL *s, int client_server, int type, BIO_printf(bio, "TLS %s extension \"%s\" (id=%d), len=%d\n", client_server ? "server": "client", extname, type, len); - BIO_dump(bio, data, len); + BIO_dump(bio, (char *)data, len); BIO_flush(bio); } diff --git a/apps/s_client.c b/apps/s_client.c index 2d234a6926..59a4daa98a 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -893,7 +893,7 @@ re_start: goto end; } - BIO_ctrl_set_connected(sbio, 1, &peer); + (void)BIO_ctrl_set_connected(sbio, 1, &peer); if (enable_timeouts) { @@ -984,7 +984,7 @@ re_start: while (mbuf_len>3 && mbuf[3]=='-'); /* STARTTLS command requires EHLO... */ BIO_printf(fbio,"EHLO openssl.client.net\r\n"); - BIO_flush(fbio); + (void)BIO_flush(fbio); /* wait for multi-line response to end EHLO SMTP response */ do { @@ -993,7 +993,7 @@ re_start: foundit=1; } while (mbuf_len>3 && mbuf[3]=='-'); - BIO_flush(fbio); + (void)BIO_flush(fbio); BIO_pop(fbio); BIO_free(fbio); if (!foundit) @@ -1017,7 +1017,7 @@ re_start: BIO_gets(fbio,mbuf,BUFSIZZ); /* STARTTLS command requires CAPABILITY... */ BIO_printf(fbio,". CAPABILITY\r\n"); - BIO_flush(fbio); + (void)BIO_flush(fbio); /* wait for multi-line CAPABILITY response */ do { @@ -1026,7 +1026,7 @@ re_start: foundit=1; } while (mbuf_len>3 && mbuf[0]!='.'); - BIO_flush(fbio); + (void)BIO_flush(fbio); BIO_pop(fbio); BIO_free(fbio); if (!foundit) @@ -1046,7 +1046,7 @@ re_start: mbuf_len = BIO_gets(fbio,mbuf,BUFSIZZ); } while (mbuf_len>3 && mbuf[3]=='-'); - BIO_flush(fbio); + (void)BIO_flush(fbio); BIO_pop(fbio); BIO_free(fbio); BIO_printf(sbio,"AUTH TLS\r\n"); @@ -1578,6 +1578,6 @@ static void print_stuff(BIO *bio, SSL *s, int full) if (peer != NULL) X509_free(peer); /* flush, or debugging output gets mixed with http response */ - BIO_flush(bio); + (void)BIO_flush(bio); } diff --git a/apps/s_server.c b/apps/s_server.c index fc6256afe8..ac36039a14 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -1458,7 +1458,7 @@ bad: } BIO_printf(bio_s_out,"ACCEPT\n"); - BIO_flush(bio_s_out); + (void)BIO_flush(bio_s_out); if (www) do_server(port,socket_type,&accept_socket,www_body, context); else -- cgit v1.2.3