X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Fboringssl%2Fsrc%2Fcrypto%2Fbio%2Fbio_test.c;h=beb38491cd78af6c5ee992f0762e1a9cd3e5f747;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=f3075b811638b864ec6e1369f5995a924b1b2a37;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/boringssl/src/crypto/bio/bio_test.c b/src/third_party/boringssl/src/crypto/bio/bio_test.c index f3075b8..beb3849 100644 --- a/src/third_party/boringssl/src/crypto/bio/bio_test.c +++ b/src/third_party/boringssl/src/crypto/bio/bio_test.c @@ -22,10 +22,11 @@ #include #include +#include #include -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 +95,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 +145,8 @@ static int test_printf() { return 1; } -int main() { +int main(void) { + CRYPTO_library_init(); ERR_load_crypto_strings(); if (!test_socket_connect()) {