Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2014-08-21 00:24:00 +0400
committerAdam Langley <agl@google.com>2014-08-21 05:06:07 +0400
commitc44d2f4cb8a892a603edbbe710fa82bcd30f9cb5 (patch)
tree8e26839eef5cc06c2bd3b0e3461f33b746b48d15 /crypto/bio
parent5213df4e9ed9ca130c40f142893cb91f2e18eee1 (diff)
Convert all zero-argument functions to '(void)'
Otherwise, in C, it becomes a K&R function declaration which doesn't actually type-check the number of arguments. Change-Id: I0731a9fefca46fb1c266bfb1c33d464cf451a22e Reviewed-on: https://boringssl-review.googlesource.com/1582 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/bio')
-rw-r--r--crypto/bio/bio_test.c6
-rw-r--r--crypto/bio/internal.h2
-rw-r--r--crypto/bio/socket_helper.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/crypto/bio/bio_test.c b/crypto/bio/bio_test.c
index f3075b81..75399df5 100644
--- a/crypto/bio/bio_test.c
+++ b/crypto/bio/bio_test.c
@@ -25,7 +25,7 @@
#include <openssl/err.h>
-static int test_socket_connect() {
+static int test_socket_connect(void) {
int listening_sock = socket(AF_INET, SOCK_STREAM, 0);
int sock;
struct sockaddr_in sin;
@@ -94,7 +94,7 @@ static int test_socket_connect() {
return 1;
}
-static int test_printf() {
+static int test_printf(void) {
/* Test a short output, a very long one, and various sizes around
* 256 (the size of the buffer) to ensure edge cases are correct. */
static const size_t kLengths[] = { 5, 250, 251, 252, 253, 254, 1023 };
@@ -144,7 +144,7 @@ static int test_printf() {
return 1;
}
-int main() {
+int main(void) {
ERR_load_crypto_strings();
if (!test_socket_connect()) {
diff --git a/crypto/bio/internal.h b/crypto/bio/internal.h
index dd3d8007..ba28839a 100644
--- a/crypto/bio/internal.h
+++ b/crypto/bio/internal.h
@@ -92,7 +92,7 @@ int bio_socket_nbio(int sock, int on);
/* BIO_clear_socket_error clears the last system socket error.
*
* TODO(fork): remove all callers of this. */
-void bio_clear_socket_error();
+void bio_clear_socket_error(void);
/* BIO_sock_error returns the last socket error on |sock|. */
int bio_sock_error(int sock);
diff --git a/crypto/bio/socket_helper.c b/crypto/bio/socket_helper.c
index 0d7d21a6..ba65a1a4 100644
--- a/crypto/bio/socket_helper.c
+++ b/crypto/bio/socket_helper.c
@@ -97,7 +97,7 @@ int bio_socket_nbio(int sock, int on) {
#endif
}
-void bio_clear_socket_error() {}
+void bio_clear_socket_error(void) {}
int bio_sock_error(int sock) {
int error;