Fix deprecation warnings for function declarations without a prototype

"warning: a function declaration without a prototype is deprecated in
all versions of C"
This commit is contained in:
Soner Tari 2024-07-02 17:55:27 +03:00
parent dfb783d7ba
commit b3705efe9d
3 changed files with 6 additions and 4 deletions

View File

@ -77,14 +77,14 @@ oom_return_null(const char *argv0)
}
int
oom_return_na()
oom_return_na(void)
{
fprintf(stderr, "Out of memory\n");
return -1;
}
void *
oom_return_na_null()
oom_return_na_null(void)
{
fprintf(stderr, "Out of memory\n");
return NULL;

View File

@ -276,8 +276,8 @@ typedef struct userdbkeys {
int oom_return(const char *) WUNRES;
void *oom_return_null(const char *) WUNRES;
int oom_return_na() WUNRES;
void *oom_return_na_null() WUNRES;
int oom_return_na(void) WUNRES;
void *oom_return_na_null(void) WUNRES;
cert_t *opts_load_cert_chain_key(const char *) NONNULL(1);

View File

@ -927,6 +927,8 @@ static int
check_fd_usage(
#ifdef DEBUG_PROXY
pxy_conn_ctx_t *ctx
#else
void
#endif /* DEBUG_PROXY */
)
{