nfqws,tpws: disallow optimizer to inline config_from_file

This commit is contained in:
bol-van 2024-11-02 11:33:59 +03:00
parent 7abf105777
commit 8f8e082ab4
2 changed files with 4 additions and 2 deletions

View File

@ -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];

View File

@ -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];