summaryrefslogtreecommitdiffabout
path: root/mfd/prog.c
Side-by-side diff
Diffstat (limited to 'mfd/prog.c') (more/less context) (show 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
@@ -1486,11 +1486,11 @@ instr_result(eval_environ_t env)
sfsistat status = (sfsistat) get_immediate(env, 0);
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",
status,
@@ -1512,10 +1512,10 @@ instr_result(eval_environ_t env)
xcode = NULL;
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
dump_result(prog_counter_t i)

Return to:

Send suggestions and report system problems to the System administrator.