Commit 710069c1 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Fix warnings.

parent ddd3a617
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}

+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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)
				{
+2 −2
Original line number Diff line number Diff line
@@ -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);
	}
+7 −7
Original line number Diff line number Diff line
@@ -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);
	}
Loading