diff options
Diffstat (limited to 'src/section/type.c')
| -rw-r--r-- | src/section/type.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/section/type.c b/src/section/type.c index 0bf7a06..f7bc712 100644 --- a/src/section/type.c +++ b/src/section/type.c @@ -80,7 +80,7 @@ static int check_func_type(FILE *const f, struct retval *const r) } static int run(FILE *const f, const unsigned long len, const varuint32 idx, - struct nw_frame *const fr) + struct retval *const out) { const long start = ftell(f); varuint32 count; @@ -105,9 +105,9 @@ static int run(FILE *const f, const unsigned long len, const varuint32 idx, LOG("%s: check_func_type failed\n", __func__); return -1; } - else if (fr && i == idx) + else if (out && i == idx) { - fr->retval = r; + *out = r; return 0; } } @@ -161,7 +161,7 @@ int section_type_check(const struct section *const s, struct nw_mod *const m, } int section_type_push(FILE *const f, const struct nw_mod *const m, - const varuint32 idx, struct nw_frame *const fr) + const varuint32 idx, struct retval *const out) { const long offset = m->sections.type; @@ -176,5 +176,5 @@ int section_type_push(FILE *const f, const struct nw_mod *const m, return -1; } - return run(f, 0, idx, fr); + return run(f, 0, idx, out); } |
