summaryrefslogtreecommitdiff
path: root/nest/cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'nest/cmds.c')
-rw-r--r--nest/cmds.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/nest/cmds.c b/nest/cmds.c
index 2b83033f..da4015cf 100644
--- a/nest/cmds.c
+++ b/nest/cmds.c
@@ -15,7 +15,6 @@
#include "lib/string.h"
#include "lib/resource.h"
#include "filter/filter.h"
-#include "filter/data.h"
extern int shutting_down;
extern int configuring;
@@ -98,16 +97,14 @@ cmd_show_memory(void)
void
cmd_eval(const struct f_line *expr)
{
- /* TODO: Return directly the string from eval */
- struct f_val v;
- if (f_eval(expr, this_cli->parser_pool, &v) > F_RETURN)
+ buffer buf;
+ LOG_BUFFER_INIT(buf);
+
+ if (f_eval_buf(expr, this_cli->parser_pool, &buf) > F_RETURN)
{
cli_msg(8008, "runtime error");
return;
}
- buffer buf;
- LOG_BUFFER_INIT(buf);
- val_format(&v, &buf);
cli_msg(23, "%s", buf.start);
}