Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a few missing (void) to please clang #198

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static lsec_ssl_option_t ssl_options[] = {
{NULL, 0L}
};

LSEC_API lsec_ssl_option_t* lsec_get_ssl_options() {
LSEC_API lsec_ssl_option_t* lsec_get_ssl_options(void) {
return ssl_options;
}

2 changes: 1 addition & 1 deletion src/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ struct lsec_ssl_option_s {

typedef struct lsec_ssl_option_s lsec_ssl_option_t;

LSEC_API lsec_ssl_option_t* lsec_get_ssl_options();
LSEC_API lsec_ssl_option_t* lsec_get_ssl_options(void);

#endif
2 changes: 1 addition & 1 deletion src/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
/**
* Underline socket error.
*/
static int lsec_socket_error()
static int lsec_socket_error(void)
{
#if defined(WIN32)
return WSAGetLastError();
Expand Down