Skip to content

Commit 319dbd1

Browse files
committed
Fix [-Wstrict-prototypes] in OpenSSL extension in .c files
1 parent 99787cc commit 319dbd1

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
@@ -478,7 +478,7 @@ php_stream* php_openssl_get_stream_from_ssl_handle(const SSL *ssl)
478478
return (php_stream*)SSL_get_ex_data(ssl, ssl_stream_data_index);
479479
}
480480

481-
int php_openssl_get_ssl_stream_data_index()
481+
int php_openssl_get_ssl_stream_data_index(void)
482482
{
483483
return ssl_stream_data_index;
484484
}

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
static struct timeval php_openssl_subtract_timeval(struct timeval a, struct timeval b);
126126
static int php_openssl_compare_timeval(struct timeval a, struct timeval b);
127127
static ssize_t php_openssl_sockop_io(int read, php_stream *stream, char *buf, size_t count);

0 commit comments

Comments
 (0)