chore(userspace/falco): rename falco_init into falco_run

Co-authored-by: Federico Di Pierro <nierro92@gmail.com>
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce 2023-02-09 13:14:29 +00:00 committed by poiana
parent 149544d7ab
commit c45bf3eb17

View File

@ -40,7 +40,7 @@ static void display_fatal_err(const std::string &&msg)
//
// ARGUMENT PARSING AND PROGRAM SETUP
//
int falco_init(int argc, char **argv, bool &restart)
int falco_run(int argc, char **argv, bool &restart)
{
restart = false;
std::string errstr;
@ -69,11 +69,11 @@ int main(int argc, char **argv)
int rc;
bool restart;
// Generally falco exits when falco_init returns with the rc
// returned by falco_init. However, when restart (set by
// Generally falco exits when falco_run returns with the rc
// returned by falco_run. However, when restart (set by
// signal handlers, returned in application::run()) is true,
// falco_init() is called again.
while((rc = falco_init(argc, argv, restart)) == EXIT_SUCCESS && restart)
// falco_run() is called again.
while((rc = falco_run(argc, argv, restart)) == EXIT_SUCCESS && restart)
{
}