More fixes for MSVC.
Change-Id: I2cde4d99974a28126452bb66c6e176b92b7f0bc9
diff --git a/crypto/newhope/newhope_test.c b/crypto/newhope/newhope_test.c
index ff6aa83..5d96007 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 @@
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 @@
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 @@
return 1;
}
-int main() {
+int main(void) {
if (!test_keys() || !test_invalid_sk_a() || !test_invalid_ciphertext()) {
return 1;
}