summaryrefslogtreecommitdiffabout
path: root/mfd/prog.c
Side-by-side diff
Diffstat (limited to 'mfd/prog.c') (more/less context) (ignore whitespace changes)
-rw-r--r--mfd/prog.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mfd/prog.c b/mfd/prog.c
index 90a426e..f8e58a9 100644
--- a/mfd/prog.c
+++ b/mfd/prog.c
@@ -1487,9 +1487,9 @@ instr_result(eval_environ_t env)
char *code, *xcode;
char *message;
- get_string_arg(env, 0, &message);
- get_literal(env, 1, (const char**)&code);
- get_literal(env, 2, (const char**)&xcode);
+ get_string_arg(env, 2, &message);
+ get_string_arg(env, 1, &xcode);
+ get_string_arg(env, 0, &code);
if (PROG_TRACE_ENGINE)
prog_trace(env, "RESULT %d %s %s %s",
@@ -1513,8 +1513,8 @@ instr_result(eval_environ_t env)
env->status = status;
env->setreply(env->data, code, xcode, message);
- advance_pc(env, 3);
- adjust_stack(env, 1);
+ advance_pc(env, 1);
+ adjust_stack(env, 3);
}
void

Return to:

Send suggestions and report system problems to the System administrator.