1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Fix two 'old-style-definition' compile warning (#2807)

Fix compile warnings in ext/puma_http11/mini_ssl.c and ext/puma_http11/puma_http11.c.
This commit is contained in:
MSP-Greg 2022-01-25 08:52:02 -06:00 committed by GitHub
parent 930e5b422d
commit d20915d6f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ const rb_data_type_t engine_data_type = {
};
#ifndef HAVE_SSL_GET1_PEER_CERTIFICATE
DH *get_dh2048() {
DH *get_dh2048(void) {
/* `openssl dhparam -C 2048`
* -----BEGIN DH PARAMETERS-----
* MIIBCAKCAQEAjmh1uQHdTfxOyxEbKAV30fUfzqMDF/ChPzjfyzl2jcrqQMhrk76o

View file

@ -451,7 +451,7 @@ VALUE HttpParser_body(VALUE self) {
void Init_mini_ssl(VALUE mod);
#endif
void Init_puma_http11()
void Init_puma_http11(void)
{
VALUE mPuma = rb_define_module("Puma");