mirror of
https://github.com/sonertari/SSLproxy
synced 2024-10-31 21:20:21 +00:00
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:
parent
dfb783d7ba
commit
b3705efe9d
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
@ -927,6 +927,8 @@ static int
|
||||
check_fd_usage(
|
||||
#ifdef DEBUG_PROXY
|
||||
pxy_conn_ctx_t *ctx
|
||||
#else
|
||||
void
|
||||
#endif /* DEBUG_PROXY */
|
||||
)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user