diff options
author | 2014-05-24 18:34:03 +0000 | |
---|---|---|
committer | 2014-05-24 18:34:03 +0000 | |
commit | dddc0f7084483ccddb51bda22d5f7d8afb5a6d22 (patch) | |
tree | ffdcfcafef847d52bc477358bb1db617c589bf5e | |
parent | Break annoyingly long line that keeps popping up in diffs. (diff) | |
download | wireguard-openbsd-dddc0f7084483ccddb51bda22d5f7d8afb5a6d22.tar.xz wireguard-openbsd-dddc0f7084483ccddb51bda22d5f7d8afb5a6d22.zip |
I'm so sorry to learn that the Diab compiler can't (or used not to) parse C
code. Remove workaround.
-rw-r--r-- | lib/libssl/src/ssl/ssl_lib.c | 6 | ||||
-rw-r--r-- | lib/libssl/ssl_lib.c | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/lib/libssl/src/ssl/ssl_lib.c b/lib/libssl/src/ssl/ssl_lib.c index c2e6b407c50..694bc900a0e 100644 --- a/lib/libssl/src/ssl/ssl_lib.c +++ b/lib/libssl/src/ssl/ssl_lib.c @@ -2963,11 +2963,7 @@ SSL_set_info_callback(SSL *ssl, ssl->info_callback = cb; } -/* - * One compiler (Diab DCC) doesn't like argument names in returned - * function pointer. - */ -void (*SSL_get_info_callback(const SSL *ssl))(const SSL * /*ssl*/,int /*type*/,int /*val*/) +void (*SSL_get_info_callback(const SSL *ssl))(const SSL *ssl, int type, int val) { return (ssl->info_callback); } diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c index c2e6b407c50..694bc900a0e 100644 --- a/lib/libssl/ssl_lib.c +++ b/lib/libssl/ssl_lib.c @@ -2963,11 +2963,7 @@ SSL_set_info_callback(SSL *ssl, ssl->info_callback = cb; } -/* - * One compiler (Diab DCC) doesn't like argument names in returned - * function pointer. - */ -void (*SSL_get_info_callback(const SSL *ssl))(const SSL * /*ssl*/,int /*type*/,int /*val*/) +void (*SSL_get_info_callback(const SSL *ssl))(const SSL *ssl, int type, int val) { return (ssl->info_callback); } |