Skip to content

Commit f566eb4

Browse files
committed
Fix [-Wstrict-prototypes] in OpenSSL extension in .c files
1 parent e770de5 commit f566eb4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/openssl/openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ php_stream* php_openssl_get_stream_from_ssl_handle(const SSL *ssl)
395395
return (php_stream*)SSL_get_ex_data(ssl, ssl_stream_data_index);
396396
}
397397

398-
int php_openssl_get_ssl_stream_data_index()
398+
int php_openssl_get_ssl_stream_data_index(void)
399399
{
400400
return ssl_stream_data_index;
401401
}

ext/openssl/xp_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static RSA *php_openssl_tmp_rsa_cb(SSL *s, int is_export, int keylength);
121121

122122
extern php_stream* php_openssl_get_stream_from_ssl_handle(const SSL *ssl);
123123
extern zend_string* php_openssl_x509_fingerprint(X509 *peer, const char *method, zend_bool raw);
124-
extern int php_openssl_get_ssl_stream_data_index();
124+
extern int php_openssl_get_ssl_stream_data_index(void);
125125
extern int php_openssl_get_x509_list_id(void);
126126
static struct timeval php_openssl_subtract_timeval(struct timeval a, struct timeval b);
127127
static int php_openssl_compare_timeval(struct timeval a, struct timeval b);

0 commit comments

Comments
 (0)