mirror of
https://github.com/bol-van/zapret.git
synced 2025-12-30 11:28:06 +03:00
function without args () -> (void)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user