diff --git a/nfq/nfqws.c b/nfq/nfqws.c index bec9b4e..32443e7 100644 --- a/nfq/nfqws.c +++ b/nfq/nfqws.c @@ -982,7 +982,8 @@ bool parse_tlspos(const char *s, enum tlspos *pos) 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 char buf[MAX_CONFIG_FILE_SIZE]; diff --git a/tpws/tpws.c b/tpws/tpws.c index 27d04c9..322e680 100644 --- a/tpws/tpws.c +++ b/tpws/tpws.c @@ -364,7 +364,8 @@ static bool parse_pf_list(char *opt, struct port_filters_head *pfl) 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 char buf[MAX_CONFIG_FILE_SIZE];