From e6685141aae8fc869d49cde1d459f73b87bbec89 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 1 Mar 2022 16:18:12 -0500 Subject: *: Rename `struct thread` to `struct event` Effectively a massive search and replace of `struct thread` to `struct event`. Using the term `thread` gives people the thought that this event system is a pthread when it is not Signed-off-by: Donald Sharp --- lib/grammar_sandbox_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/grammar_sandbox_main.c') diff --git a/lib/grammar_sandbox_main.c b/lib/grammar_sandbox_main.c index cdb1c3adb4..261a130632 100644 --- a/lib/grammar_sandbox_main.c +++ b/lib/grammar_sandbox_main.c @@ -27,7 +27,7 @@ struct thread_master *master; int main(int argc, char **argv) { - struct thread thread; + struct event event; master = thread_master_create(NULL); @@ -45,8 +45,8 @@ int main(int argc, char **argv) vty_stdio(vty_do_exit); /* Fetch next active thread. */ - while (thread_fetch(master, &thread)) - thread_call(&thread); + while (thread_fetch(master, &event)) + thread_call(&event); /* Not reached. */ exit(0); -- cgit v1.2.3