mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-22 14:26:03 +00:00
nfqws,tpws: disallow optimizer to inline config_from_file
This commit is contained in:
parent
7abf105777
commit
8f8e082ab4
@ -982,7 +982,8 @@ bool parse_tlspos(const char *s, enum tlspos *pos)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void config_from_file(const char *filename)
|
// no static to not allow optimizer to inline this func (save stack)
|
||||||
|
void config_from_file(const char *filename)
|
||||||
{
|
{
|
||||||
// config from a file
|
// config from a file
|
||||||
char buf[MAX_CONFIG_FILE_SIZE];
|
char buf[MAX_CONFIG_FILE_SIZE];
|
||||||
|
@ -364,7 +364,8 @@ static bool parse_pf_list(char *opt, struct port_filters_head *pfl)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void config_from_file(const char *filename)
|
// no static to not allow optimizer to inline this func (save stack)
|
||||||
|
void config_from_file(const char *filename)
|
||||||
{
|
{
|
||||||
// config from a file
|
// config from a file
|
||||||
char buf[MAX_CONFIG_FILE_SIZE];
|
char buf[MAX_CONFIG_FILE_SIZE];
|
||||||
|
Loading…
Reference in New Issue
Block a user