summaryrefslogtreecommitdiffstats
path: root/lib/command_queue.c
diff options
context:
space:
mode:
authorpaulo <paul@bayleaf.org.uk>2009-12-15 17:09:13 +0000
committerpaulo <paul@bayleaf.org.uk>2009-12-15 17:09:13 +0000
commitb69a458160a9ab354fb9350f605bd36310786304 (patch)
tree007ba517f808d527c54fe9093aad6e7c44f1ca3b /lib/command_queue.c
parent73fe495cffb7eae3f68df3d3598b0f83df81b79a (diff)
downloadquagga-b69a458160a9ab354fb9350f605bd36310786304.tar.bz2
quagga-b69a458160a9ab354fb9350f605bd36310786304.tar.xz
Get CLI thread and UI working properly. Sex commands according to
thread to run in. Add qlib_init stuff. Add -t parameter for "threaded".
Diffstat (limited to 'lib/command_queue.c')
-rw-r--r--lib/command_queue.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/command_queue.c b/lib/command_queue.c
index a74398c3..902cd89c 100644
--- a/lib/command_queue.c
+++ b/lib/command_queue.c
@@ -70,7 +70,10 @@ cq_action(mqueue_block mqb)
/* Execute matched command. */
result = (*wyatt->matched_element->func)
- (wyatt->matched_element, wyatt->vty, wyatt->argc, wyatt->argv);
+ (wyatt->matched_element, wyatt->vty, wyatt->argc, (const char **)wyatt->argv);
+
+ /* report */
+ vty_queued_result(wyatt->vty, result);
/* clean up */
for (i = 0; i< wyatt->argc; ++i)