From dca0aaa15884eb5bf1105e1c7a6323f11be4abd3 Mon Sep 17 00:00:00 2001 From: miod <> Date: Sun, 27 Apr 2014 20:20:59 +0000 Subject: Put explicit (void) in function declarations and shuffle keywords in some declaration to pass -Wextra, should we want to add it to CFLAGS. No binary change. --- src/lib/libcrypto/cast/c_enc.c | 4 ++-- src/lib/libcrypto/conf/conf_def.c | 4 ++-- src/lib/libcrypto/conf/conf_sap.c | 2 +- src/lib/libcrypto/engine/tb_cipher.c | 2 +- src/lib/libcrypto/engine/tb_dh.c | 2 +- src/lib/libcrypto/engine/tb_digest.c | 2 +- src/lib/libcrypto/engine/tb_dsa.c | 2 +- src/lib/libcrypto/engine/tb_ecdh.c | 2 +- src/lib/libcrypto/engine/tb_ecdsa.c | 2 +- src/lib/libcrypto/engine/tb_pkmeth.c | 2 +- src/lib/libcrypto/engine/tb_rand.c | 2 +- src/lib/libcrypto/engine/tb_rsa.c | 2 +- src/lib/libcrypto/engine/tb_store.c | 2 +- src/lib/libcrypto/pqueue/pqueue.c | 2 +- src/lib/libcrypto/ts/ts_rsp_sign.c | 2 +- src/lib/libcrypto/x509v3/v3_utl.c | 2 +- src/lib/libssl/src/crypto/cast/c_enc.c | 4 ++-- src/lib/libssl/src/crypto/conf/conf_def.c | 4 ++-- src/lib/libssl/src/crypto/conf/conf_sap.c | 2 +- src/lib/libssl/src/crypto/engine/tb_cipher.c | 2 +- src/lib/libssl/src/crypto/engine/tb_dh.c | 2 +- src/lib/libssl/src/crypto/engine/tb_digest.c | 2 +- src/lib/libssl/src/crypto/engine/tb_dsa.c | 2 +- src/lib/libssl/src/crypto/engine/tb_ecdh.c | 2 +- src/lib/libssl/src/crypto/engine/tb_ecdsa.c | 2 +- src/lib/libssl/src/crypto/engine/tb_pkmeth.c | 2 +- src/lib/libssl/src/crypto/engine/tb_rand.c | 2 +- src/lib/libssl/src/crypto/engine/tb_rsa.c | 2 +- src/lib/libssl/src/crypto/engine/tb_store.c | 2 +- src/lib/libssl/src/crypto/pqueue/pqueue.c | 2 +- src/lib/libssl/src/crypto/ts/ts_rsp_sign.c | 2 +- src/lib/libssl/src/crypto/x509v3/v3_utl.c | 2 +- 32 files changed, 36 insertions(+), 36 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/cast/c_enc.c b/src/lib/libcrypto/cast/c_enc.c index 2ae54f5cfb..a1f28293f1 100644 --- a/src/lib/libcrypto/cast/c_enc.c +++ b/src/lib/libcrypto/cast/c_enc.c @@ -63,7 +63,7 @@ void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key) { register CAST_LONG l,r,t; - const register CAST_LONG *k; + register const CAST_LONG *k; k= &(key->data[0]); l=data[0]; @@ -96,7 +96,7 @@ void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key) void CAST_decrypt(CAST_LONG *data, const CAST_KEY *key) { register CAST_LONG l,r,t; - const register CAST_LONG *k; + register const CAST_LONG *k; k= &(key->data[0]); l=data[0]; diff --git a/src/lib/libcrypto/conf/conf_def.c b/src/lib/libcrypto/conf/conf_def.c index bc9f139e7e..d85773df0e 100644 --- a/src/lib/libcrypto/conf/conf_def.c +++ b/src/lib/libcrypto/conf/conf_def.c @@ -117,13 +117,13 @@ static CONF_METHOD WIN32_method = { }; CONF_METHOD * -NCONF_default() +NCONF_default(void) { return &default_method; } CONF_METHOD * -NCONF_WIN32() +NCONF_WIN32(void) { return &WIN32_method; } diff --git a/src/lib/libcrypto/conf/conf_sap.c b/src/lib/libcrypto/conf/conf_sap.c index bbd73df812..a8e1f78093 100644 --- a/src/lib/libcrypto/conf/conf_sap.c +++ b/src/lib/libcrypto/conf/conf_sap.c @@ -104,7 +104,7 @@ OPENSSL_config(const char *config_name) } void -OPENSSL_no_config() +OPENSSL_no_config(void) { openssl_configured = 1; } diff --git a/src/lib/libcrypto/engine/tb_cipher.c b/src/lib/libcrypto/engine/tb_cipher.c index 177fc1fb73..8d45a9a9cf 100644 --- a/src/lib/libcrypto/engine/tb_cipher.c +++ b/src/lib/libcrypto/engine/tb_cipher.c @@ -85,7 +85,7 @@ int ENGINE_register_ciphers(ENGINE *e) return 1; } -void ENGINE_register_all_ciphers() +void ENGINE_register_all_ciphers(void) { ENGINE *e; diff --git a/src/lib/libcrypto/engine/tb_dh.c b/src/lib/libcrypto/engine/tb_dh.c index 6e9d428761..78515aeaa0 100644 --- a/src/lib/libcrypto/engine/tb_dh.c +++ b/src/lib/libcrypto/engine/tb_dh.c @@ -80,7 +80,7 @@ int ENGINE_register_DH(ENGINE *e) return 1; } -void ENGINE_register_all_DH() +void ENGINE_register_all_DH(void) { ENGINE *e; diff --git a/src/lib/libcrypto/engine/tb_digest.c b/src/lib/libcrypto/engine/tb_digest.c index d3f4bb2747..d1bb90aedd 100644 --- a/src/lib/libcrypto/engine/tb_digest.c +++ b/src/lib/libcrypto/engine/tb_digest.c @@ -85,7 +85,7 @@ int ENGINE_register_digests(ENGINE *e) return 1; } -void ENGINE_register_all_digests() +void ENGINE_register_all_digests(void) { ENGINE *e; diff --git a/src/lib/libcrypto/engine/tb_dsa.c b/src/lib/libcrypto/engine/tb_dsa.c index e4674f5f07..6731aad1da 100644 --- a/src/lib/libcrypto/engine/tb_dsa.c +++ b/src/lib/libcrypto/engine/tb_dsa.c @@ -80,7 +80,7 @@ int ENGINE_register_DSA(ENGINE *e) return 1; } -void ENGINE_register_all_DSA() +void ENGINE_register_all_DSA(void) { ENGINE *e; diff --git a/src/lib/libcrypto/engine/tb_ecdh.c b/src/lib/libcrypto/engine/tb_ecdh.c index c8ec7812c5..57354b8c11 100644 --- a/src/lib/libcrypto/engine/tb_ecdh.c +++ b/src/lib/libcrypto/engine/tb_ecdh.c @@ -95,7 +95,7 @@ int ENGINE_register_ECDH(ENGINE *e) return 1; } -void ENGINE_register_all_ECDH() +void ENGINE_register_all_ECDH(void) { ENGINE *e; diff --git a/src/lib/libcrypto/engine/tb_ecdsa.c b/src/lib/libcrypto/engine/tb_ecdsa.c index 005ecb622c..8f30e956e0 100644 --- a/src/lib/libcrypto/engine/tb_ecdsa.c +++ b/src/lib/libcrypto/engine/tb_ecdsa.c @@ -80,7 +80,7 @@ int ENGINE_register_ECDSA(ENGINE *e) return 1; } -void ENGINE_register_all_ECDSA() +void ENGINE_register_all_ECDSA(void) { ENGINE *e; diff --git a/src/lib/libcrypto/engine/tb_pkmeth.c b/src/lib/libcrypto/engine/tb_pkmeth.c index 1cdb967f25..7a59744102 100644 --- a/src/lib/libcrypto/engine/tb_pkmeth.c +++ b/src/lib/libcrypto/engine/tb_pkmeth.c @@ -86,7 +86,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; diff --git a/src/lib/libcrypto/engine/tb_rand.c b/src/lib/libcrypto/engine/tb_rand.c index f36f67c0f6..3745ae7abd 100644 --- a/src/lib/libcrypto/engine/tb_rand.c +++ b/src/lib/libcrypto/engine/tb_rand.c @@ -80,7 +80,7 @@ int ENGINE_register_RAND(ENGINE *e) return 1; } -void ENGINE_register_all_RAND() +void ENGINE_register_all_RAND(void) { ENGINE *e; diff --git a/src/lib/libcrypto/engine/tb_rsa.c b/src/lib/libcrypto/engine/tb_rsa.c index fbc707fd26..2f4928fd66 100644 --- a/src/lib/libcrypto/engine/tb_rsa.c +++ b/src/lib/libcrypto/engine/tb_rsa.c @@ -80,7 +80,7 @@ int ENGINE_register_RSA(ENGINE *e) return 1; } -void ENGINE_register_all_RSA() +void ENGINE_register_all_RSA(void) { ENGINE *e; diff --git a/src/lib/libcrypto/engine/tb_store.c b/src/lib/libcrypto/engine/tb_store.c index 8cc435c935..bd853733ea 100644 --- a/src/lib/libcrypto/engine/tb_store.c +++ b/src/lib/libcrypto/engine/tb_store.c @@ -80,7 +80,7 @@ int ENGINE_register_STORE(ENGINE *e) return 1; } -void ENGINE_register_all_STORE() +void ENGINE_register_all_STORE(void) { ENGINE *e; diff --git a/src/lib/libcrypto/pqueue/pqueue.c b/src/lib/libcrypto/pqueue/pqueue.c index 5cea75311e..b8fed503a5 100644 --- a/src/lib/libcrypto/pqueue/pqueue.c +++ b/src/lib/libcrypto/pqueue/pqueue.c @@ -92,7 +92,7 @@ pitem_free(pitem *item) } pqueue_s * -pqueue_new() +pqueue_new(void) { pqueue_s *pq = (pqueue_s *)malloc(sizeof(pqueue_s)); diff --git a/src/lib/libcrypto/ts/ts_rsp_sign.c b/src/lib/libcrypto/ts/ts_rsp_sign.c index 71530d7f24..fe5244c0c5 100644 --- a/src/lib/libcrypto/ts/ts_rsp_sign.c +++ b/src/lib/libcrypto/ts/ts_rsp_sign.c @@ -169,7 +169,7 @@ def_extension_cb(struct TS_resp_ctx *ctx, X509_EXTENSION *ext, void *data) /* TS_RESP_CTX management functions. */ TS_RESP_CTX * -TS_RESP_CTX_new() +TS_RESP_CTX_new(void) { TS_RESP_CTX *ctx; diff --git a/src/lib/libcrypto/x509v3/v3_utl.c b/src/lib/libcrypto/x509v3/v3_utl.c index f85c1ef82e..c3328d668d 100644 --- a/src/lib/libcrypto/x509v3/v3_utl.c +++ b/src/lib/libcrypto/x509v3/v3_utl.c @@ -365,7 +365,7 @@ char *hex_to_string(const unsigned char *buffer, long len) char *tmp, *q; const unsigned char *p; int i; - const static char hexdig[] = "0123456789ABCDEF"; + static const char hexdig[] = "0123456789ABCDEF"; if(!buffer || !len) return NULL; if(!(tmp = malloc(len * 3 + 1))) { X509V3err(X509V3_F_HEX_TO_STRING,ERR_R_MALLOC_FAILURE); diff --git a/src/lib/libssl/src/crypto/cast/c_enc.c b/src/lib/libssl/src/crypto/cast/c_enc.c index 2ae54f5cfb..a1f28293f1 100644 --- a/src/lib/libssl/src/crypto/cast/c_enc.c +++ b/src/lib/libssl/src/crypto/cast/c_enc.c @@ -63,7 +63,7 @@ void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key) { register CAST_LONG l,r,t; - const register CAST_LONG *k; + register const CAST_LONG *k; k= &(key->data[0]); l=data[0]; @@ -96,7 +96,7 @@ void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key) void CAST_decrypt(CAST_LONG *data, const CAST_KEY *key) { register CAST_LONG l,r,t; - const register CAST_LONG *k; + register const CAST_LONG *k; k= &(key->data[0]); l=data[0]; diff --git a/src/lib/libssl/src/crypto/conf/conf_def.c b/src/lib/libssl/src/crypto/conf/conf_def.c index bc9f139e7e..d85773df0e 100644 --- a/src/lib/libssl/src/crypto/conf/conf_def.c +++ b/src/lib/libssl/src/crypto/conf/conf_def.c @@ -117,13 +117,13 @@ static CONF_METHOD WIN32_method = { }; CONF_METHOD * -NCONF_default() +NCONF_default(void) { return &default_method; } CONF_METHOD * -NCONF_WIN32() +NCONF_WIN32(void) { return &WIN32_method; } diff --git a/src/lib/libssl/src/crypto/conf/conf_sap.c b/src/lib/libssl/src/crypto/conf/conf_sap.c index bbd73df812..a8e1f78093 100644 --- a/src/lib/libssl/src/crypto/conf/conf_sap.c +++ b/src/lib/libssl/src/crypto/conf/conf_sap.c @@ -104,7 +104,7 @@ OPENSSL_config(const char *config_name) } void -OPENSSL_no_config() +OPENSSL_no_config(void) { openssl_configured = 1; } diff --git a/src/lib/libssl/src/crypto/engine/tb_cipher.c b/src/lib/libssl/src/crypto/engine/tb_cipher.c index 177fc1fb73..8d45a9a9cf 100644 --- a/src/lib/libssl/src/crypto/engine/tb_cipher.c +++ b/src/lib/libssl/src/crypto/engine/tb_cipher.c @@ -85,7 +85,7 @@ int ENGINE_register_ciphers(ENGINE *e) return 1; } -void ENGINE_register_all_ciphers() +void ENGINE_register_all_ciphers(void) { ENGINE *e; diff --git a/src/lib/libssl/src/crypto/engine/tb_dh.c b/src/lib/libssl/src/crypto/engine/tb_dh.c index 6e9d428761..78515aeaa0 100644 --- a/src/lib/libssl/src/crypto/engine/tb_dh.c +++ b/src/lib/libssl/src/crypto/engine/tb_dh.c @@ -80,7 +80,7 @@ int ENGINE_register_DH(ENGINE *e) return 1; } -void ENGINE_register_all_DH() +void ENGINE_register_all_DH(void) { ENGINE *e; diff --git a/src/lib/libssl/src/crypto/engine/tb_digest.c b/src/lib/libssl/src/crypto/engine/tb_digest.c index d3f4bb2747..d1bb90aedd 100644 --- a/src/lib/libssl/src/crypto/engine/tb_digest.c +++ b/src/lib/libssl/src/crypto/engine/tb_digest.c @@ -85,7 +85,7 @@ int ENGINE_register_digests(ENGINE *e) return 1; } -void ENGINE_register_all_digests() +void ENGINE_register_all_digests(void) { ENGINE *e; diff --git a/src/lib/libssl/src/crypto/engine/tb_dsa.c b/src/lib/libssl/src/crypto/engine/tb_dsa.c index e4674f5f07..6731aad1da 100644 --- a/src/lib/libssl/src/crypto/engine/tb_dsa.c +++ b/src/lib/libssl/src/crypto/engine/tb_dsa.c @@ -80,7 +80,7 @@ int ENGINE_register_DSA(ENGINE *e) return 1; } -void ENGINE_register_all_DSA() +void ENGINE_register_all_DSA(void) { ENGINE *e; diff --git a/src/lib/libssl/src/crypto/engine/tb_ecdh.c b/src/lib/libssl/src/crypto/engine/tb_ecdh.c index c8ec7812c5..57354b8c11 100644 --- a/src/lib/libssl/src/crypto/engine/tb_ecdh.c +++ b/src/lib/libssl/src/crypto/engine/tb_ecdh.c @@ -95,7 +95,7 @@ int ENGINE_register_ECDH(ENGINE *e) return 1; } -void ENGINE_register_all_ECDH() +void ENGINE_register_all_ECDH(void) { ENGINE *e; diff --git a/src/lib/libssl/src/crypto/engine/tb_ecdsa.c b/src/lib/libssl/src/crypto/engine/tb_ecdsa.c index 005ecb622c..8f30e956e0 100644 --- a/src/lib/libssl/src/crypto/engine/tb_ecdsa.c +++ b/src/lib/libssl/src/crypto/engine/tb_ecdsa.c @@ -80,7 +80,7 @@ int ENGINE_register_ECDSA(ENGINE *e) return 1; } -void ENGINE_register_all_ECDSA() +void ENGINE_register_all_ECDSA(void) { ENGINE *e; diff --git a/src/lib/libssl/src/crypto/engine/tb_pkmeth.c b/src/lib/libssl/src/crypto/engine/tb_pkmeth.c index 1cdb967f25..7a59744102 100644 --- a/src/lib/libssl/src/crypto/engine/tb_pkmeth.c +++ b/src/lib/libssl/src/crypto/engine/tb_pkmeth.c @@ -86,7 +86,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; diff --git a/src/lib/libssl/src/crypto/engine/tb_rand.c b/src/lib/libssl/src/crypto/engine/tb_rand.c index f36f67c0f6..3745ae7abd 100644 --- a/src/lib/libssl/src/crypto/engine/tb_rand.c +++ b/src/lib/libssl/src/crypto/engine/tb_rand.c @@ -80,7 +80,7 @@ int ENGINE_register_RAND(ENGINE *e) return 1; } -void ENGINE_register_all_RAND() +void ENGINE_register_all_RAND(void) { ENGINE *e; diff --git a/src/lib/libssl/src/crypto/engine/tb_rsa.c b/src/lib/libssl/src/crypto/engine/tb_rsa.c index fbc707fd26..2f4928fd66 100644 --- a/src/lib/libssl/src/crypto/engine/tb_rsa.c +++ b/src/lib/libssl/src/crypto/engine/tb_rsa.c @@ -80,7 +80,7 @@ int ENGINE_register_RSA(ENGINE *e) return 1; } -void ENGINE_register_all_RSA() +void ENGINE_register_all_RSA(void) { ENGINE *e; diff --git a/src/lib/libssl/src/crypto/engine/tb_store.c b/src/lib/libssl/src/crypto/engine/tb_store.c index 8cc435c935..bd853733ea 100644 --- a/src/lib/libssl/src/crypto/engine/tb_store.c +++ b/src/lib/libssl/src/crypto/engine/tb_store.c @@ -80,7 +80,7 @@ int ENGINE_register_STORE(ENGINE *e) return 1; } -void ENGINE_register_all_STORE() +void ENGINE_register_all_STORE(void) { ENGINE *e; diff --git a/src/lib/libssl/src/crypto/pqueue/pqueue.c b/src/lib/libssl/src/crypto/pqueue/pqueue.c index 5cea75311e..b8fed503a5 100644 --- a/src/lib/libssl/src/crypto/pqueue/pqueue.c +++ b/src/lib/libssl/src/crypto/pqueue/pqueue.c @@ -92,7 +92,7 @@ pitem_free(pitem *item) } pqueue_s * -pqueue_new() +pqueue_new(void) { pqueue_s *pq = (pqueue_s *)malloc(sizeof(pqueue_s)); diff --git a/src/lib/libssl/src/crypto/ts/ts_rsp_sign.c b/src/lib/libssl/src/crypto/ts/ts_rsp_sign.c index 71530d7f24..fe5244c0c5 100644 --- a/src/lib/libssl/src/crypto/ts/ts_rsp_sign.c +++ b/src/lib/libssl/src/crypto/ts/ts_rsp_sign.c @@ -169,7 +169,7 @@ def_extension_cb(struct TS_resp_ctx *ctx, X509_EXTENSION *ext, void *data) /* TS_RESP_CTX management functions. */ TS_RESP_CTX * -TS_RESP_CTX_new() +TS_RESP_CTX_new(void) { TS_RESP_CTX *ctx; diff --git a/src/lib/libssl/src/crypto/x509v3/v3_utl.c b/src/lib/libssl/src/crypto/x509v3/v3_utl.c index f85c1ef82e..c3328d668d 100644 --- a/src/lib/libssl/src/crypto/x509v3/v3_utl.c +++ b/src/lib/libssl/src/crypto/x509v3/v3_utl.c @@ -365,7 +365,7 @@ char *hex_to_string(const unsigned char *buffer, long len) char *tmp, *q; const unsigned char *p; int i; - const static char hexdig[] = "0123456789ABCDEF"; + static const char hexdig[] = "0123456789ABCDEF"; if(!buffer || !len) return NULL; if(!(tmp = malloc(len * 3 + 1))) { X509V3err(X509V3_F_HEX_TO_STRING,ERR_R_MALLOC_FAILURE); -- cgit v1.2.3-55-g6feb