diff options
author | miod <> | 2014-04-27 20:20:59 +0000 |
---|---|---|
committer | miod <> | 2014-04-27 20:20:59 +0000 |
commit | dca0aaa15884eb5bf1105e1c7a6323f11be4abd3 (patch) | |
tree | 8c69a274c74d651766e7fde77b65409a83f19e91 /src/lib | |
parent | 3a7174b249978efb30c051425bce7b06accba708 (diff) | |
download | openbsd-dca0aaa15884eb5bf1105e1c7a6323f11be4abd3.tar.gz openbsd-dca0aaa15884eb5bf1105e1c7a6323f11be4abd3.tar.bz2 openbsd-dca0aaa15884eb5bf1105e1c7a6323f11be4abd3.zip |
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.
Diffstat (limited to 'src/lib')
32 files changed, 36 insertions, 36 deletions
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 @@ | |||
63 | void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key) | 63 | void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key) |
64 | { | 64 | { |
65 | register CAST_LONG l,r,t; | 65 | register CAST_LONG l,r,t; |
66 | const register CAST_LONG *k; | 66 | register const CAST_LONG *k; |
67 | 67 | ||
68 | k= &(key->data[0]); | 68 | k= &(key->data[0]); |
69 | l=data[0]; | 69 | l=data[0]; |
@@ -96,7 +96,7 @@ void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key) | |||
96 | void CAST_decrypt(CAST_LONG *data, const CAST_KEY *key) | 96 | void CAST_decrypt(CAST_LONG *data, const CAST_KEY *key) |
97 | { | 97 | { |
98 | register CAST_LONG l,r,t; | 98 | register CAST_LONG l,r,t; |
99 | const register CAST_LONG *k; | 99 | register const CAST_LONG *k; |
100 | 100 | ||
101 | k= &(key->data[0]); | 101 | k= &(key->data[0]); |
102 | l=data[0]; | 102 | 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 = { | |||
117 | }; | 117 | }; |
118 | 118 | ||
119 | CONF_METHOD * | 119 | CONF_METHOD * |
120 | NCONF_default() | 120 | NCONF_default(void) |
121 | { | 121 | { |
122 | return &default_method; | 122 | return &default_method; |
123 | } | 123 | } |
124 | 124 | ||
125 | CONF_METHOD * | 125 | CONF_METHOD * |
126 | NCONF_WIN32() | 126 | NCONF_WIN32(void) |
127 | { | 127 | { |
128 | return &WIN32_method; | 128 | return &WIN32_method; |
129 | } | 129 | } |
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) | |||
104 | } | 104 | } |
105 | 105 | ||
106 | void | 106 | void |
107 | OPENSSL_no_config() | 107 | OPENSSL_no_config(void) |
108 | { | 108 | { |
109 | openssl_configured = 1; | 109 | openssl_configured = 1; |
110 | } | 110 | } |
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) | |||
85 | return 1; | 85 | return 1; |
86 | } | 86 | } |
87 | 87 | ||
88 | void ENGINE_register_all_ciphers() | 88 | void ENGINE_register_all_ciphers(void) |
89 | { | 89 | { |
90 | ENGINE *e; | 90 | ENGINE *e; |
91 | 91 | ||
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) | |||
80 | return 1; | 80 | return 1; |
81 | } | 81 | } |
82 | 82 | ||
83 | void ENGINE_register_all_DH() | 83 | void ENGINE_register_all_DH(void) |
84 | { | 84 | { |
85 | ENGINE *e; | 85 | ENGINE *e; |
86 | 86 | ||
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) | |||
85 | return 1; | 85 | return 1; |
86 | } | 86 | } |
87 | 87 | ||
88 | void ENGINE_register_all_digests() | 88 | void ENGINE_register_all_digests(void) |
89 | { | 89 | { |
90 | ENGINE *e; | 90 | ENGINE *e; |
91 | 91 | ||
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) | |||
80 | return 1; | 80 | return 1; |
81 | } | 81 | } |
82 | 82 | ||
83 | void ENGINE_register_all_DSA() | 83 | void ENGINE_register_all_DSA(void) |
84 | { | 84 | { |
85 | ENGINE *e; | 85 | ENGINE *e; |
86 | 86 | ||
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) | |||
95 | return 1; | 95 | return 1; |
96 | } | 96 | } |
97 | 97 | ||
98 | void ENGINE_register_all_ECDH() | 98 | void ENGINE_register_all_ECDH(void) |
99 | { | 99 | { |
100 | ENGINE *e; | 100 | ENGINE *e; |
101 | 101 | ||
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) | |||
80 | return 1; | 80 | return 1; |
81 | } | 81 | } |
82 | 82 | ||
83 | void ENGINE_register_all_ECDSA() | 83 | void ENGINE_register_all_ECDSA(void) |
84 | { | 84 | { |
85 | ENGINE *e; | 85 | ENGINE *e; |
86 | 86 | ||
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) | |||
86 | return 1; | 86 | return 1; |
87 | } | 87 | } |
88 | 88 | ||
89 | void ENGINE_register_all_pkey_meths() | 89 | void ENGINE_register_all_pkey_meths(void) |
90 | { | 90 | { |
91 | ENGINE *e; | 91 | ENGINE *e; |
92 | 92 | ||
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) | |||
80 | return 1; | 80 | return 1; |
81 | } | 81 | } |
82 | 82 | ||
83 | void ENGINE_register_all_RAND() | 83 | void ENGINE_register_all_RAND(void) |
84 | { | 84 | { |
85 | ENGINE *e; | 85 | ENGINE *e; |
86 | 86 | ||
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) | |||
80 | return 1; | 80 | return 1; |
81 | } | 81 | } |
82 | 82 | ||
83 | void ENGINE_register_all_RSA() | 83 | void ENGINE_register_all_RSA(void) |
84 | { | 84 | { |
85 | ENGINE *e; | 85 | ENGINE *e; |
86 | 86 | ||
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) | |||
80 | return 1; | 80 | return 1; |
81 | } | 81 | } |
82 | 82 | ||
83 | void ENGINE_register_all_STORE() | 83 | void ENGINE_register_all_STORE(void) |
84 | { | 84 | { |
85 | ENGINE *e; | 85 | ENGINE *e; |
86 | 86 | ||
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) | |||
92 | } | 92 | } |
93 | 93 | ||
94 | pqueue_s * | 94 | pqueue_s * |
95 | pqueue_new() | 95 | pqueue_new(void) |
96 | { | 96 | { |
97 | pqueue_s *pq = (pqueue_s *)malloc(sizeof(pqueue_s)); | 97 | pqueue_s *pq = (pqueue_s *)malloc(sizeof(pqueue_s)); |
98 | 98 | ||
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) | |||
169 | /* TS_RESP_CTX management functions. */ | 169 | /* TS_RESP_CTX management functions. */ |
170 | 170 | ||
171 | TS_RESP_CTX * | 171 | TS_RESP_CTX * |
172 | TS_RESP_CTX_new() | 172 | TS_RESP_CTX_new(void) |
173 | { | 173 | { |
174 | TS_RESP_CTX *ctx; | 174 | TS_RESP_CTX *ctx; |
175 | 175 | ||
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) | |||
365 | char *tmp, *q; | 365 | char *tmp, *q; |
366 | const unsigned char *p; | 366 | const unsigned char *p; |
367 | int i; | 367 | int i; |
368 | const static char hexdig[] = "0123456789ABCDEF"; | 368 | static const char hexdig[] = "0123456789ABCDEF"; |
369 | if(!buffer || !len) return NULL; | 369 | if(!buffer || !len) return NULL; |
370 | if(!(tmp = malloc(len * 3 + 1))) { | 370 | if(!(tmp = malloc(len * 3 + 1))) { |
371 | X509V3err(X509V3_F_HEX_TO_STRING,ERR_R_MALLOC_FAILURE); | 371 | 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 @@ | |||
63 | void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key) | 63 | void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key) |
64 | { | 64 | { |
65 | register CAST_LONG l,r,t; | 65 | register CAST_LONG l,r,t; |
66 | const register CAST_LONG *k; | 66 | register const CAST_LONG *k; |
67 | 67 | ||
68 | k= &(key->data[0]); | 68 | k= &(key->data[0]); |
69 | l=data[0]; | 69 | l=data[0]; |
@@ -96,7 +96,7 @@ void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key) | |||
96 | void CAST_decrypt(CAST_LONG *data, const CAST_KEY *key) | 96 | void CAST_decrypt(CAST_LONG *data, const CAST_KEY *key) |
97 | { | 97 | { |
98 | register CAST_LONG l,r,t; | 98 | register CAST_LONG l,r,t; |
99 | const register CAST_LONG *k; | 99 | register const CAST_LONG *k; |
100 | 100 | ||
101 | k= &(key->data[0]); | 101 | k= &(key->data[0]); |
102 | l=data[0]; | 102 | 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 = { | |||
117 | }; | 117 | }; |
118 | 118 | ||
119 | CONF_METHOD * | 119 | CONF_METHOD * |
120 | NCONF_default() | 120 | NCONF_default(void) |
121 | { | 121 | { |
122 | return &default_method; | 122 | return &default_method; |
123 | } | 123 | } |
124 | 124 | ||
125 | CONF_METHOD * | 125 | CONF_METHOD * |
126 | NCONF_WIN32() | 126 | NCONF_WIN32(void) |
127 | { | 127 | { |
128 | return &WIN32_method; | 128 | return &WIN32_method; |
129 | } | 129 | } |
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) | |||
104 | } | 104 | } |
105 | 105 | ||
106 | void | 106 | void |
107 | OPENSSL_no_config() | 107 | OPENSSL_no_config(void) |
108 | { | 108 | { |
109 | openssl_configured = 1; | 109 | openssl_configured = 1; |
110 | } | 110 | } |
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) | |||
85 | return 1; | 85 | return 1; |
86 | } | 86 | } |
87 | 87 | ||
88 | void ENGINE_register_all_ciphers() | 88 | void ENGINE_register_all_ciphers(void) |
89 | { | 89 | { |
90 | ENGINE *e; | 90 | ENGINE *e; |
91 | 91 | ||
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) | |||
80 | return 1; | 80 | return 1; |
81 | } | 81 | } |
82 | 82 | ||
83 | void ENGINE_register_all_DH() | 83 | void ENGINE_register_all_DH(void) |
84 | { | 84 | { |
85 | ENGINE *e; | 85 | ENGINE *e; |
86 | 86 | ||
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) | |||
85 | return 1; | 85 | return 1; |
86 | } | 86 | } |
87 | 87 | ||
88 | void ENGINE_register_all_digests() | 88 | void ENGINE_register_all_digests(void) |
89 | { | 89 | { |
90 | ENGINE *e; | 90 | ENGINE *e; |
91 | 91 | ||
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) | |||
80 | return 1; | 80 | return 1; |
81 | } | 81 | } |
82 | 82 | ||
83 | void ENGINE_register_all_DSA() | 83 | void ENGINE_register_all_DSA(void) |
84 | { | 84 | { |
85 | ENGINE *e; | 85 | ENGINE *e; |
86 | 86 | ||
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) | |||
95 | return 1; | 95 | return 1; |
96 | } | 96 | } |
97 | 97 | ||
98 | void ENGINE_register_all_ECDH() | 98 | void ENGINE_register_all_ECDH(void) |
99 | { | 99 | { |
100 | ENGINE *e; | 100 | ENGINE *e; |
101 | 101 | ||
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) | |||
80 | return 1; | 80 | return 1; |
81 | } | 81 | } |
82 | 82 | ||
83 | void ENGINE_register_all_ECDSA() | 83 | void ENGINE_register_all_ECDSA(void) |
84 | { | 84 | { |
85 | ENGINE *e; | 85 | ENGINE *e; |
86 | 86 | ||
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) | |||
86 | return 1; | 86 | return 1; |
87 | } | 87 | } |
88 | 88 | ||
89 | void ENGINE_register_all_pkey_meths() | 89 | void ENGINE_register_all_pkey_meths(void) |
90 | { | 90 | { |
91 | ENGINE *e; | 91 | ENGINE *e; |
92 | 92 | ||
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) | |||
80 | return 1; | 80 | return 1; |
81 | } | 81 | } |
82 | 82 | ||
83 | void ENGINE_register_all_RAND() | 83 | void ENGINE_register_all_RAND(void) |
84 | { | 84 | { |
85 | ENGINE *e; | 85 | ENGINE *e; |
86 | 86 | ||
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) | |||
80 | return 1; | 80 | return 1; |
81 | } | 81 | } |
82 | 82 | ||
83 | void ENGINE_register_all_RSA() | 83 | void ENGINE_register_all_RSA(void) |
84 | { | 84 | { |
85 | ENGINE *e; | 85 | ENGINE *e; |
86 | 86 | ||
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) | |||
80 | return 1; | 80 | return 1; |
81 | } | 81 | } |
82 | 82 | ||
83 | void ENGINE_register_all_STORE() | 83 | void ENGINE_register_all_STORE(void) |
84 | { | 84 | { |
85 | ENGINE *e; | 85 | ENGINE *e; |
86 | 86 | ||
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) | |||
92 | } | 92 | } |
93 | 93 | ||
94 | pqueue_s * | 94 | pqueue_s * |
95 | pqueue_new() | 95 | pqueue_new(void) |
96 | { | 96 | { |
97 | pqueue_s *pq = (pqueue_s *)malloc(sizeof(pqueue_s)); | 97 | pqueue_s *pq = (pqueue_s *)malloc(sizeof(pqueue_s)); |
98 | 98 | ||
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) | |||
169 | /* TS_RESP_CTX management functions. */ | 169 | /* TS_RESP_CTX management functions. */ |
170 | 170 | ||
171 | TS_RESP_CTX * | 171 | TS_RESP_CTX * |
172 | TS_RESP_CTX_new() | 172 | TS_RESP_CTX_new(void) |
173 | { | 173 | { |
174 | TS_RESP_CTX *ctx; | 174 | TS_RESP_CTX *ctx; |
175 | 175 | ||
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) | |||
365 | char *tmp, *q; | 365 | char *tmp, *q; |
366 | const unsigned char *p; | 366 | const unsigned char *p; |
367 | int i; | 367 | int i; |
368 | const static char hexdig[] = "0123456789ABCDEF"; | 368 | static const char hexdig[] = "0123456789ABCDEF"; |
369 | if(!buffer || !len) return NULL; | 369 | if(!buffer || !len) return NULL; |
370 | if(!(tmp = malloc(len * 3 + 1))) { | 370 | if(!(tmp = malloc(len * 3 + 1))) { |
371 | X509V3err(X509V3_F_HEX_TO_STRING,ERR_R_MALLOC_FAILURE); | 371 | X509V3err(X509V3_F_HEX_TO_STRING,ERR_R_MALLOC_FAILURE); |