diff options
author | Adam Langley <agl@google.com> | 2016-04-27 02:25:31 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2016-04-27 02:25:31 +0300 |
commit | e75f0530a009efac5519053ff6c342ad0da50eea (patch) | |
tree | 16fddefd4e5d8ccbc8027f128e7a0479f1fb8d7c /crypto/newhope | |
parent | bc57d55c9fe88d3c4f41dd204ec25a8dcf606a5e (diff) |
More fixes for MSVC.
Change-Id: I2cde4d99974a28126452bb66c6e176b92b7f0bc9
Diffstat (limited to 'crypto/newhope')
-rw-r--r-- | crypto/newhope/newhope_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/newhope/newhope_test.c b/crypto/newhope/newhope_test.c index ff6aa83a..5d960072 100644 --- a/crypto/newhope/newhope_test.c +++ b/crypto/newhope/newhope_test.c @@ -24,7 +24,7 @@ #define NTESTS 1000 -static int test_keys() { +static int test_keys(void) { NEWHOPE_POLY *sk = NEWHOPE_POLY_new(); uint8_t server_key[SHA256_DIGEST_LENGTH], client_key[SHA256_DIGEST_LENGTH]; uint8_t servermsg[NEWHOPE_SERVERMSG_LENGTH]; @@ -59,7 +59,7 @@ static int test_keys() { return 1; } -static int test_invalid_sk_a() { +static int test_invalid_sk_a(void) { NEWHOPE_POLY *sk = NEWHOPE_POLY_new(); uint8_t server_key[SHA256_DIGEST_LENGTH], client_key[SHA256_DIGEST_LENGTH]; uint8_t servermsg[NEWHOPE_SERVERMSG_LENGTH]; @@ -97,7 +97,7 @@ static int test_invalid_sk_a() { return 1; } -static int test_invalid_ciphertext() { +static int test_invalid_ciphertext(void) { NEWHOPE_POLY *sk = NEWHOPE_POLY_new(); uint8_t server_key[SHA256_DIGEST_LENGTH], client_key[SHA256_DIGEST_LENGTH]; uint8_t servermsg[NEWHOPE_SERVERMSG_LENGTH]; @@ -135,7 +135,7 @@ static int test_invalid_ciphertext() { return 1; } -int main() { +int main(void) { if (!test_keys() || !test_invalid_sk_a() || !test_invalid_ciphertext()) { return 1; } |