]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/grammar_sandbox_main.c
Merge pull request #13649 from donaldsharp/unlock_the_node_or_else
[mirror_frr.git] / lib / grammar_sandbox_main.c
index cdb1c3adb449152e07c843e75064d6c3977d1a34..abd42f359f059adb4b6a3581aa8b9c29a3d3e4ef 100644 (file)
@@ -23,13 +23,13 @@ static void vty_do_exit(int isexit)
                exit(0);
 }
 
-struct thread_master *master;
+struct event_loop *master;
 
 int main(int argc, char **argv)
 {
-       struct thread thread;
+       struct event event;
 
-       master = thread_master_create(NULL);
+       master = event_master_create(NULL);
 
        zlog_aux_init("NONE: ", LOG_DEBUG);
 
@@ -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 (event_fetch(master, &event))
+               event_call(&event);
 
        /* Not reached. */
        exit(0);