Use void in all function definitions that do not take any arguments
authorKurt Roeckx <kurt@roeckx.be>
Wed, 9 May 2018 15:09:50 +0000 (17:09 +0200)
committerKurt Roeckx <kurt@roeckx.be>
Fri, 11 May 2018 12:37:48 +0000 (14:37 +0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
GH: #6208

46 files changed:
apps/apps.c
apps/openssl.c
crypto/bio/bio_meth.c
crypto/conf/conf_def.c
crypto/ct/ct_log.c
crypto/engine/tb_cipher.c
crypto/engine/tb_dh.c
crypto/engine/tb_digest.c
crypto/engine/tb_dsa.c
crypto/engine/tb_eckey.c
crypto/engine/tb_pkmeth.c
crypto/engine/tb_rand.c
crypto/engine/tb_rsa.c
crypto/mem_sec.c
crypto/poly1305/poly1305.c
crypto/rand/drbg_lib.c
crypto/rand/rand_lib.c
crypto/store/store_init.c
crypto/ts/ts_rsp_sign.c
crypto/x509/x509_lu.c
ssl/pqueue.c
test/asynciotest.c
test/asynctest.c
test/cipherlist_test.c
test/drbgtest.c
test/dtls_mtu_test.c
test/dtlsv1listentest.c
test/evp_test.c
test/exdatatest.c
test/generate_buildtest.pl
test/handshake_helper.c
test/mdc2_internal_test.c
test/modes_internal_test.c
test/pkey_meth_kdf_test.c
test/pkey_meth_test.c
test/rdrand_sanitytest.c
test/ssl_cert_table_internal_test.c
test/ssl_test_ctx.c
test/sslcorrupttest.c
test/ssltest_old.c
test/time_offset_test.c
test/tls13ccstest.c
test/tls13secretstest.c
test/v3nametest.c
test/x509_internal_test.c
test/x509_time_test.c

index b35ea563eeb1f23bbd56efe1a07fe84273f5ed93..d5a6aea206ed8c094cf8d1324b33e0a615d49a6f 100644 (file)
@@ -2486,7 +2486,7 @@ BIO *dup_bio_err(int format)
     return b;
 }
 
-void destroy_prefix_method()
+void destroy_prefix_method(void)
 {
     BIO_meth_free(prefix_method);
     prefix_method = NULL;
index 8224ae3d0f5af1466e4359d57852603b8721554b..a872e2c5eeec8bd8764c7e129b75e0b9ccfd3846 100644 (file)
@@ -74,7 +74,7 @@ static void calculate_columns(DISPLAY_COLUMNS *dc)
     dc->columns = (80 - 1) / dc->width;
 }
 
-static int apps_startup()
+static int apps_startup(void)
 {
 #ifdef SIGPIPE
     signal(SIGPIPE, SIG_IGN);
@@ -90,13 +90,13 @@ static int apps_startup()
     return 1;
 }
 
-static void apps_shutdown()
+static void apps_shutdown(void)
 {
     destroy_ui_method();
     destroy_prefix_method();
 }
 
-static char *make_config_name()
+static char *make_config_name(void)
 {
     const char *t;
     size_t len;
index 21df94a1fea5c7bf700e66bcf8f9a07fad2496ff..493ff63a9012b626b639ff662f0cfd4272e9fa80 100644 (file)
@@ -19,7 +19,7 @@ DEFINE_RUN_ONCE_STATIC(do_bio_type_init)
     return bio_type_lock != NULL;
 }
 
-int BIO_get_new_index()
+int BIO_get_new_index(void)
 {
     static CRYPTO_REF_COUNT bio_count = BIO_TYPE_START;
     int newval;
index aa9f2faa9a608dfff342682c3a159a4f1ef983b4..7340a91ae4beac64caa73cbaae17062c12a03c6c 100644 (file)
@@ -85,12 +85,12 @@ static CONF_METHOD WIN32_method = {
     def_load
 };
 
-CONF_METHOD *NCONF_default()
+CONF_METHOD *NCONF_default(void)
 {
     return &default_method;
 }
 
-CONF_METHOD *NCONF_WIN32()
+CONF_METHOD *NCONF_WIN32(void)
 {
     return &WIN32_method;
 }
index d442322e26b5ab66a8b038b97f88b4826213b99b..4e5c10905511d0cb560d999d5df7b4422dd8f322 100644 (file)
@@ -54,7 +54,7 @@ static CTLOG_STORE_LOAD_CTX *ctlog_store_load_ctx_new();
  */
 static void ctlog_store_load_ctx_free(CTLOG_STORE_LOAD_CTX* ctx);
 
-static CTLOG_STORE_LOAD_CTX *ctlog_store_load_ctx_new()
+static CTLOG_STORE_LOAD_CTX *ctlog_store_load_ctx_new(void)
 {
     CTLOG_STORE_LOAD_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx));
 
index ac4914111540d37b4cc9698e5c14cda9ce00db4e..45d754fea832388718d466a3a3190197c921ca7d 100644 (file)
@@ -34,7 +34,7 @@ int ENGINE_register_ciphers(ENGINE *e)
     return 1;
 }
 
-void ENGINE_register_all_ciphers()
+void ENGINE_register_all_ciphers(void)
 {
     ENGINE *e;
 
index c6440df2076d8208e51039f5aaf92094f177f3de..427a3f0280fdf49d6d9e8ba1d3e1902bc4f22e6e 100644 (file)
@@ -31,7 +31,7 @@ int ENGINE_register_DH(ENGINE *e)
     return 1;
 }
 
-void ENGINE_register_all_DH()
+void ENGINE_register_all_DH(void)
 {
     ENGINE *e;
 
index 194b9c7e8944d772a2abf13cb272030ef844f3ee..019adcf93363fc369557f9ffde82d73ce68b959a 100644 (file)
@@ -34,7 +34,7 @@ int ENGINE_register_digests(ENGINE *e)
     return 1;
 }
 
-void ENGINE_register_all_digests()
+void ENGINE_register_all_digests(void)
 {
     ENGINE *e;
 
index fdb80cd79f7e86bc1696a92541cfdf3bf2700f89..90d5476f3848ebffccad873b5a5a130e1390a0c8 100644 (file)
@@ -31,7 +31,7 @@ int ENGINE_register_DSA(ENGINE *e)
     return 1;
 }
 
-void ENGINE_register_all_DSA()
+void ENGINE_register_all_DSA(void)
 {
     ENGINE *e;
 
index 75750b29fca00aa887acd07f42672aed4f72fd25..713fdc5f3b2280dbf9235557d55f47ce07c42a62 100644 (file)
@@ -31,7 +31,7 @@ int ENGINE_register_EC(ENGINE *e)
     return 1;
 }
 
-void ENGINE_register_all_EC()
+void ENGINE_register_all_EC(void)
 {
     ENGINE *e;
 
index 2e82d8551efb24bcd9da4690cec78a015dacda4b..e6c7ad27cd154d4c0db0eecf6034b035e6dbdaa3 100644 (file)
@@ -35,7 +35,7 @@ int ENGINE_register_pkey_meths(ENGINE *e)
     return 1;
 }
 
-void ENGINE_register_all_pkey_meths()
+void ENGINE_register_all_pkey_meths(void)
 {
     ENGINE *e;
 
index 225e7c81dccd26b63595e52636cf0b7bed3dd671..759d2f7df36f0c57a0e3d9d7c189d845a5f5c604 100644 (file)
@@ -31,7 +31,7 @@ int ENGINE_register_RAND(ENGINE *e)
     return 1;
 }
 
-void ENGINE_register_all_RAND()
+void ENGINE_register_all_RAND(void)
 {
     ENGINE *e;
 
index e2cc680a9c8d787aa6e91354e022066d35f6c4e6..5c523d63169ceefd139accfa063acb913dfe0d4c 100644 (file)
@@ -31,7 +31,7 @@ int ENGINE_register_RSA(ENGINE *e)
     return 1;
 }
 
-void ENGINE_register_all_RSA()
+void ENGINE_register_all_RSA(void)
 {
     ENGINE *e;
 
index 1c1327037acfc00bad0130792cf33ad64a8b1f34..959c63714f32d40427c8a3375b79cab080f6ff63 100644 (file)
@@ -92,7 +92,7 @@ int CRYPTO_secure_malloc_init(size_t size, int minsize)
 #endif /* IMPLEMENTED */
 }
 
-int CRYPTO_secure_malloc_done()
+int CRYPTO_secure_malloc_done(void)
 {
 #ifdef IMPLEMENTED
     if (secure_mem_used == 0) {
@@ -106,7 +106,7 @@ int CRYPTO_secure_malloc_done()
     return 0;
 }
 
-int CRYPTO_secure_malloc_initialized()
+int CRYPTO_secure_malloc_initialized(void)
 {
 #ifdef IMPLEMENTED
     return secure_mem_initialized;
@@ -209,7 +209,7 @@ int CRYPTO_secure_allocated(const void *ptr)
 #endif /* IMPLEMENTED */
 }
 
-size_t CRYPTO_secure_used()
+size_t CRYPTO_secure_used(void)
 {
 #ifdef IMPLEMENTED
     return secure_mem_used;
@@ -500,7 +500,7 @@ static int sh_init(size_t size, int minsize)
     return 0;
 }
 
-static void sh_done()
+static void sh_done(void)
 {
     OPENSSL_free(sh.freelist);
     OPENSSL_free(sh.bittable);
index e3eb5da5c4c22b307bac2728b46ee197827608ec..1d182364aee4359f5122776177063de68392a823 100644 (file)
@@ -14,7 +14,7 @@
 #include "internal/poly1305.h"
 #include "poly1305_local.h"
 
-size_t Poly1305_ctx_size ()
+size_t Poly1305_ctx_size(void)
 {
     return sizeof(struct poly1305_context);
 }
index 60ddd2fe204b409a940663be9ca746fd9df8c9c7..729b49c94372797f3ffb7a91d8b5369d177c3521 100644 (file)
@@ -921,7 +921,7 @@ void rand_drbg_cleanup_int(void)
     }
 }
 
-void drbg_delete_thread_state()
+void drbg_delete_thread_state(void)
 {
     RAND_DRBG *drbg;
 
index 050c9d23cc8d62c5bcbdec6f68bc8d20f53de776..1a9a7d2ce00eb8884daf6164eb8b393f385c21f8 100644 (file)
@@ -303,7 +303,7 @@ void rand_drbg_cleanup_additional_data(unsigned char *out, size_t outlen)
     OPENSSL_secure_clear_free(out, outlen);
 }
 
-void rand_fork()
+void rand_fork(void)
 {
     rand_fork_count++;
 }
index 4b53108684611032abd9ca51aefe8936672ab92b..4d0ff012e0bea1327ea7326b879116f92d492e0b 100644 (file)
@@ -18,7 +18,7 @@ DEFINE_RUN_ONCE_STATIC(do_store_init)
         && ossl_store_file_loader_init();
 }
 
-int ossl_store_init_once()
+int ossl_store_init_once(void)
 {
     if (!RUN_ONCE(&store_init, do_store_init)) {
         OSSL_STOREerr(OSSL_STORE_F_OSSL_STORE_INIT_ONCE, ERR_R_MALLOC_FAILURE);
index ed45c009bcc9a4ef29b4f1545265d7cc6d11b9dc..1b2b84ef6b67dbccf90a937d76e81dd8e9127e33 100644 (file)
@@ -117,7 +117,7 @@ static int def_extension_cb(struct TS_resp_ctx *ctx, X509_EXTENSION *ext,
 
 /* TS_RESP_CTX management functions. */
 
-TS_RESP_CTX *TS_RESP_CTX_new()
+TS_RESP_CTX *TS_RESP_CTX_new(void)
 {
     TS_RESP_CTX *ctx;
 
index fbeed018f57e38cc2eaca93c21e23d1e0ef04533..639a3df095a88ba810d997a4cad40a8208bf04ea 100644 (file)
@@ -391,7 +391,7 @@ X509_LOOKUP_TYPE X509_OBJECT_get_type(const X509_OBJECT *a)
     return a->type;
 }
 
-X509_OBJECT *X509_OBJECT_new()
+X509_OBJECT *X509_OBJECT_new(void)
 {
     X509_OBJECT *ret = OPENSSL_zalloc(sizeof(*ret));
 
index 29804ec0274db8d8626cc1eb427d7e8ad2bb1712..548a7a443d914545cfaba504a7583f388d8df2f8 100644 (file)
@@ -35,7 +35,7 @@ void pitem_free(pitem *item)
     OPENSSL_free(item);
 }
 
-pqueue *pqueue_new()
+pqueue *pqueue_new(void)
 {
     pqueue *pq = OPENSSL_zalloc(sizeof(*pq));
 
index 54961b2f3b91da6f7af1c82a80234038b8799976..73e415fdd328f1d2ee63309e20e58fc0794884e0 100644 (file)
@@ -42,7 +42,7 @@ struct async_ctrs {
     unsigned int wctr;
 };
 
-static const BIO_METHOD *bio_f_async_filter()
+static const BIO_METHOD *bio_f_async_filter(void)
 {
     if (methods_async == NULL) {
         methods_async = BIO_meth_new(BIO_TYPE_ASYNC_FILTER, "Async filter");
index eef3c3214ce9f3ef862001800e860862dd414f02..c2740e6e8f567a9b6116c606e58483190014d025 100644 (file)
@@ -87,7 +87,7 @@ static int blockpause(void *args)
     return 1;
 }
 
-static int test_ASYNC_init_thread()
+static int test_ASYNC_init_thread(void)
 {
     ASYNC_JOB *job1 = NULL, *job2 = NULL, *job3 = NULL;
     int funcret1, funcret2, funcret3;
@@ -123,7 +123,7 @@ static int test_ASYNC_init_thread()
     return 1;
 }
 
-static int test_ASYNC_start_job()
+static int test_ASYNC_start_job(void)
 {
     ASYNC_JOB *job = NULL;
     int funcret;
@@ -151,7 +151,7 @@ static int test_ASYNC_start_job()
     return 1;
 }
 
-static int test_ASYNC_get_current_job()
+static int test_ASYNC_get_current_job(void)
 {
     ASYNC_JOB *job = NULL;
     int funcret;
@@ -178,7 +178,7 @@ static int test_ASYNC_get_current_job()
     return 1;
 }
 
-static int test_ASYNC_WAIT_CTX_get_all_fds()
+static int test_ASYNC_WAIT_CTX_get_all_fds(void)
 {
     ASYNC_JOB *job = NULL;
     int funcret;
@@ -245,7 +245,7 @@ static int test_ASYNC_WAIT_CTX_get_all_fds()
     return 1;
 }
 
-static int test_ASYNC_block_pause()
+static int test_ASYNC_block_pause(void)
 {
     ASYNC_JOB *job = NULL;
     int funcret;
index b224983a3454641ba07f4aa4de274a26cdf44b0d..5023c1c4875fa4afd1aed34f9203354a1664feaf 100644 (file)
@@ -215,7 +215,7 @@ static int test_default_cipherlist_explicit(void)
     return result;
 }
 
-int setup_tests()
+int setup_tests(void)
 {
     ADD_TEST(test_default_cipherlist_implicit);
     ADD_TEST(test_default_cipherlist_explicit);
index d69456b4ee31d3bfa1a6ca4f865af53c8590b5dc..c1887d659d172601e7281c04c1c52bdaec91be77 100644 (file)
@@ -554,7 +554,7 @@ static void reset_hook_ctx(HOOK_CTX *ctx)
 }
 
 /* Resets all drbg hook contexts */
-static void reset_drbg_hook_ctx()
+static void reset_drbg_hook_ctx(void)
 {
     reset_hook_ctx(&master_ctx);
     reset_hook_ctx(&public_ctx);
index dff65a7811b8889cfd73d07283f31058056ba625..8e385b07446357cf7952f30b49251b5104e7d2bb 100644 (file)
@@ -189,7 +189,7 @@ static int run_mtu_tests(void)
     return ret;
 }
 
-int setup_tests()
+int setup_tests(void)
 {
     ADD_TEST(run_mtu_tests);
     return 1;
index 807bb6d0a1beedde96be4adbc043baa95b4666b4..5331c3b3e8b5551aac564a5069e725764715ded9 100644 (file)
@@ -348,7 +348,7 @@ static int dtls_listen_test(int i)
 }
 #endif
 
-int setup_tests()
+int setup_tests(void)
 {
 #ifndef OPENSSL_NO_SOCK
     ADD_ALL_TESTS(dtls_listen_test, (int)OSSL_NELEM(testpackets));
index b36f25e939fe74481405755e2eac56257e9cacfe..e2274d96321b9ced48c5c44f034c9dbb39d5654d 100644 (file)
@@ -2378,7 +2378,7 @@ static void free_key_list(KEY_LIST *lst)
 /*
  * Is the key type an unsupported algorithm?
  */
-static int key_unsupported()
+static int key_unsupported(void)
 {
     long err = ERR_peek_error();
 
index 0ded7db673621eeb893f0b3ced830612492b97b1..6e90752df25d46b2d20ed8cd6f83c4a53c46512d 100644 (file)
@@ -127,7 +127,7 @@ typedef struct myobj_st {
     int st;
 } MYOBJ;
 
-static MYOBJ *MYOBJ_new()
+static MYOBJ *MYOBJ_new(void)
 {
     static int count = 0;
     MYOBJ *obj = OPENSSL_malloc(sizeof(*obj));
index 0a9d879eb12a9d307a176db7c6a4fcdb925a23c3..7d553623e9c7eb8c2408ea55f7766e6a0368fe39 100644 (file)
@@ -27,7 +27,7 @@ print <<"_____";
 # include <openssl/$name.h>
 #endif
 
-int main()
+int main(void)
 {
     return 0;
 }
index 9b781b03c93b6ecbf88aae34041388a2d64952d2..fc5fcd6f4f8e42a8177b8f4f98331f263e5564ab 100644 (file)
@@ -22,7 +22,7 @@
 #include "handshake_helper.h"
 #include "testutil.h"
 
-HANDSHAKE_RESULT *HANDSHAKE_RESULT_new()
+HANDSHAKE_RESULT *HANDSHAKE_RESULT_new(void)
 {
     HANDSHAKE_RESULT *ret;
 
index 64aa2dc1685204528818938c3be5018f938a1286..a5c4ebcbef364ee0928bf31d5daa394b03fafb27 100644 (file)
@@ -64,7 +64,7 @@ static int test_mdc2(int idx)
     return 1;
 }
 
-int setup_tests()
+int setup_tests(void)
 {
     ADD_ALL_TESTS(test_mdc2, OSSL_NELEM(tests));
     return 1;
index 18c09776805afb693439aa974751d99201abf733..e0f1adf6af2c94bd579fbc05738126564e987303 100644 (file)
@@ -99,7 +99,7 @@ static const SIZED_DATA aes_cts128_vectors[] = {
     CTS128_TEST_VECTOR(64),
 };
 
-static AES_KEY *cts128_encrypt_key_schedule()
+static AES_KEY *cts128_encrypt_key_schedule(void)
 {
     static int init_key = 1;
     static AES_KEY ks;
@@ -111,7 +111,7 @@ static AES_KEY *cts128_encrypt_key_schedule()
     return &ks;
 }
 
-static AES_KEY *cts128_decrypt_key_schedule()
+static AES_KEY *cts128_decrypt_key_schedule(void)
 {
     static int init_key = 1;
     static AES_KEY ks;
index 5d4c468f2d260d0128bde0873eea3326cbed264a..98495b67987789180e1844287f8c2542cc1b40c6 100644 (file)
@@ -170,7 +170,7 @@ static int test_kdf_scrypt(void)
 }
 #endif
 
-int setup_tests()
+int setup_tests(void)
 {
     ADD_TEST(test_kdf_tls1_prf);
     ADD_TEST(test_kdf_hkdf);
index 004bb30bb7247cb7179eff32bc5e28d3c28e5007..02770134f8096e8a6ea064ae0460d2da1c76fdc0 100644 (file)
@@ -75,7 +75,7 @@ static int test_pkey_meths(void)
     return good;
 }
 
-int setup_tests()
+int setup_tests(void)
 {
     ADD_TEST(test_asn1_meths);
     ADD_TEST(test_pkey_meths);
index 1844d7224c9b5daf1e29b8df218b3fde0f3cce31..0e67b377bd4d2c130f3aa44ada2cac49ae0ec0d2 100644 (file)
@@ -20,7 +20,7 @@
 size_t OPENSSL_ia32_rdrand_bytes(unsigned char *buf, size_t len);
 size_t OPENSSL_ia32_rdseed_bytes(unsigned char *buf, size_t len);
 
-void OPENSSL_cpuid_setup();
+void OPENSSL_cpuid_setup(void);
 
 extern unsigned int OPENSSL_ia32cap_P[4];
 
@@ -81,12 +81,12 @@ end:
     return testresult;
 }
 
-static int sanity_check_rdrand_bytes()
+static int sanity_check_rdrand_bytes(void)
 {
     return sanity_check_bytes(OPENSSL_ia32_rdrand_bytes, 1000, 0, 10, 10);
 }
 
-static int sanity_check_rdseed_bytes()
+static int sanity_check_rdseed_bytes(void)
 {
     /*-
      * RDSEED may take many retries to succeed; note that this is effectively
@@ -97,7 +97,8 @@ static int sanity_check_rdseed_bytes()
     return sanity_check_bytes(OPENSSL_ia32_rdseed_bytes, 1000, 1, 10000, 10);
 }
 
-int setup_tests() {
+int setup_tests(void)
+{
     OPENSSL_cpuid_setup();
 
     int have_rdseed = (OPENSSL_ia32cap_P[2] & (1 << 18)) != 0;
@@ -117,7 +118,7 @@ int setup_tests() {
 
 #else
 
-int setup_tests()
+int setup_tests(void)
 {
     return 1;
 }
index 32ec4c8c8cb686de64acf962ad93ad8985a2b97e..2104e8c5163a5d7f281a80bb2c207777c8fda355 100644 (file)
@@ -76,7 +76,7 @@ static int test_ssl_cert_table(void)
     return 1;
 }
 
-int setup_tests()
+int setup_tests(void)
 {
     ADD_TEST(test_ssl_cert_table);
     return 1;
index 7676966938c08f2db271724cb2ca11dc98dc708e..5b427e53e725e6285492d1d2cb6a7ef8ae1041b9 100644 (file)
@@ -709,7 +709,7 @@ static const ssl_test_server_option ssl_test_server_options[] = {
     { "SessionTicketAppData", &parse_server_session_ticket_app_data },
 };
 
-SSL_TEST_CTX *SSL_TEST_CTX_new()
+SSL_TEST_CTX *SSL_TEST_CTX_new(void)
 {
     SSL_TEST_CTX *ret;
 
index 30d3d3d947a26f49a2ac3d4c3a7402a7dc1419f6..d06c8c729b1d83ac84c5b3c556b6030afff3cc4f 100644 (file)
@@ -137,7 +137,7 @@ static void bio_f_tls_corrupt_filter_free(void)
  */
 static const char **cipher_list = NULL;
 
-static int setup_cipher_list()
+static int setup_cipher_list(void)
 {
     SSL_CTX *ctx = NULL;
     SSL *ssl = NULL;
index 34705c34726f865cd875302c5946dde80a48c73c..e974f6c15d3800e7852db318eaca68793d4b3ee5 100644 (file)
@@ -423,7 +423,7 @@ static int serverinfo_cli_parse_cb(SSL *s, unsigned int ext_type,
     return 1;
 }
 
-static int verify_serverinfo()
+static int verify_serverinfo(void)
 {
     if (serverinfo_sct != serverinfo_sct_seen)
         return -1;
@@ -2836,7 +2836,7 @@ static int app_verify_callback(X509_STORE_CTX *ctx, void *arg)
  *    $ openssl dhparam -C -noout -dsaparam 1024
  * (The third function has been renamed to avoid name conflicts.)
  */
-static DH *get_dh512()
+static DH *get_dh512(void)
 {
     static unsigned char dh512_p[] = {
         0xCB, 0xC8, 0xE1, 0x86, 0xD0, 0x1F, 0x94, 0x17, 0xA6, 0x99, 0xF0,
@@ -2870,7 +2870,7 @@ static DH *get_dh512()
     return dh;
 }
 
-static DH *get_dh1024()
+static DH *get_dh1024(void)
 {
     static unsigned char dh1024_p[] = {
         0xF8, 0x81, 0x89, 0x7D, 0x14, 0x24, 0xC5, 0xD1, 0xE6, 0xF7, 0xBF,
@@ -2914,7 +2914,7 @@ static DH *get_dh1024()
     return dh;
 }
 
-static DH *get_dh1024dsa()
+static DH *get_dh1024dsa(void)
 {
     static unsigned char dh1024_p[] = {
         0xC8, 0x00, 0xF7, 0x08, 0x07, 0x89, 0x4D, 0x90, 0x53, 0xF3, 0xD5,
index f3b20dd2426eb4ec5fdb04b14c35cba9979cfba2..8776559ea2bfd1d133bea1fa782bca2afe90c88e 100644 (file)
@@ -106,7 +106,7 @@ static int test_offset(int idx)
     return 1;
 }
 
-int setup_tests()
+int setup_tests(void)
 {
     ADD_ALL_TESTS(test_offset, OSSL_NELEM(tests));
     return 1;
index 25dc8192c5b3ba08956a468c69c6a6adfc77c048..92e9d598ca7fbac3fbf3a551ee9dc97886edb084 100644 (file)
@@ -37,7 +37,7 @@ static int watchccs_puts(BIO *bp, const char *str);
 
 static BIO_METHOD *method_watchccs = NULL;
 
-static const BIO_METHOD *bio_f_watchccs_filter()
+static const BIO_METHOD *bio_f_watchccs_filter(void)
 {
     if (method_watchccs == NULL) {
         method_watchccs = BIO_meth_new(BIO_TYPE_WATCHCCS_FILTER,
index 8b775b8047b6a46d1055b9a1e4b9c7be3e50228c..313ab5682ed9c929de7817d2a64f25415c1fa2e3 100644 (file)
@@ -399,7 +399,7 @@ static int test_handshake_secrets(void)
     return ret;
 }
 
-int setup_tests()
+int setup_tests(void)
 {
     ADD_TEST(test_handshake_secrets);
     return 1;
index 08684eaf76746fd15ea38a53f4d1c1d9a5836f3c..86f3829aedbd8f3b23bd6b7e8c8d3c90321a51dd 100644 (file)
@@ -251,7 +251,7 @@ static const struct set_name_fn name_fns[] = {
     {set_altname_email, "set rfc822Name", 0, 1},
 };
 
-static X509 *make_cert()
+static X509 *make_cert(void)
 {
     X509 *crt = NULL;
 
index 03bbcf2bfd25839b972a6b4975830e3af8311627..9f351a47982e3e184694669b0b95e9663f1208ea 100644 (file)
@@ -57,7 +57,7 @@ static int test_standard_exts(void)
     return good;
 }
 
-int setup_tests()
+int setup_tests(void)
 {
     ADD_TEST(test_standard_exts);
     return 1;
index 5983bdf11e93007a82b9c3886f00ad6d7a19959a..d672a9a12544a0ba74ebb20cbb5bba84e1a2b10a 100644 (file)
@@ -482,7 +482,7 @@ static int test_x509_time_print(int idx)
     return ret;
 }
 
-int setup_tests()
+int setup_tests(void)
 {
     ADD_TEST(test_x509_cmp_time_current);
     ADD_ALL_TESTS(test_x509_cmp_time, OSSL_NELEM(x509_cmp_tests));