From 322c32eeb562fcfac988b50ad11c1cfcf363577f Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Sat, 9 Dec 2023 12:23:34 +0000 Subject: [PATCH] add a few missing (void) to please clang --- src/options.c | 2 +- src/options.h | 2 +- src/ssl.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/options.c b/src/options.c index 3d17d6d..1d3a437 100644 --- a/src/options.c +++ b/src/options.c @@ -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; } diff --git a/src/options.h b/src/options.h index c72d52d..2ed365b 100644 --- a/src/options.h +++ b/src/options.h @@ -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 diff --git a/src/ssl.c b/src/ssl.c index 934bb81..30cf712 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -42,7 +42,7 @@ /** * Underline socket error. */ -static int lsec_socket_error() +static int lsec_socket_error(void) { #if defined(WIN32) return WSAGetLastError();