aboutsummaryrefslogtreecommitdiff
path: root/crypto/lhash
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2014-08-20 16:24:00 -0400
committerAdam Langley <agl@google.com>2014-08-21 01:06:07 +0000
commitc44d2f4cb8a892a603edbbe710fa82bcd30f9cb5 (patch)
tree8e26839eef5cc06c2bd3b0e3461f33b746b48d15 /crypto/lhash
parent5213df4e9ed9ca130c40f142893cb91f2e18eee1 (diff)
downloadboringssl-c44d2f4cb8a892a603edbbe710fa82bcd30f9cb5.zip
boringssl-c44d2f4cb8a892a603edbbe710fa82bcd30f9cb5.tar.gz
boringssl-c44d2f4cb8a892a603edbbe710fa82bcd30f9cb5.tar.bz2
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/lhash')
-rw-r--r--crypto/lhash/lhash_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/lhash/lhash_test.c b/crypto/lhash/lhash_test.c
index 2aa90c3..9a94a88 100644
--- a/crypto/lhash/lhash_test.c
+++ b/crypto/lhash/lhash_test.c
@@ -99,7 +99,7 @@ static char *dummy_lh_delete(struct dummy_lhash *lh, const void *s) {
return NULL;
}
-static char *rand_string() {
+static char *rand_string(void) {
unsigned len = 1 + (rand() % 3);
char *ret = malloc(len + 1);
unsigned i;