function without args () -> (void)

This commit is contained in:
bol-van
2023-10-13 20:10:46 +03:00
parent c2075ba941
commit 3e8d7676fc
16 changed files with 59 additions and 59 deletions

View File

@@ -25,7 +25,7 @@
static int redirector_fd=-1;
void redir_close()
void redir_close(void)
{
if (redirector_fd!=-1)
{
@@ -46,7 +46,7 @@ static bool redir_open_private(const char *fname, int flags)
DBGPRINT("opened redirector %s",fname);
return true;
}
bool redir_init()
bool redir_init(void)
{
return params.pf_enable ? redir_open_private("/dev/pf", O_RDONLY) : true;
}
@@ -165,8 +165,8 @@ static bool destination_from_pf(const struct sockaddr *accept_sa, struct sockadd
#else
bool redir_init() {return true;}
void redir_close() {};
bool redir_init(void) {return true;}
void redir_close(void) {};
#endif