#include <unistd.h>
#include <openssl/bio.h>
+#include <openssl/crypto.h>
#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;
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 };
return 1;
}
-int main() {
+int main(void) {
+ CRYPTO_library_init();
ERR_load_crypto_strings();
if (!test_socket_connect()) {