summaryrefslogtreecommitdiffstats
path: root/libasm/asm_end.c
diff options
context:
space:
mode:
authorUlrich Drepper <[email protected]>2005-08-03 02:05:39 +0000
committerUlrich Drepper <[email protected]>2005-08-03 02:05:39 +0000
commita38998e815ccde5d90ff0800c31da255eb3430d3 (patch)
treee5f035b73eeaf4033f159351ecad375f63d3a0aa /libasm/asm_end.c
parentef9c9c8fca98a8f9b6aa7c3604ba47e74094e181 (diff)
Add some patches from the disasm-branch branch.
The asm_begin interface changed. In text mode output is really written to the file.
Diffstat (limited to 'libasm/asm_end.c')
-rw-r--r--libasm/asm_end.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libasm/asm_end.c b/libasm/asm_end.c
index 74f01f08..33191f9c 100644
--- a/libasm/asm_end.c
+++ b/libasm/asm_end.c
@@ -33,7 +33,12 @@
static int
text_end (AsmCtx_t *ctx __attribute__ ((unused)))
{
- // XXX Does anything have to be done?
+ if (fclose (ctx->out.file) != 0)
+ {
+ __libasm_seterrno (ASM_E_IOERROR);
+ return -1;
+ }
+
return 0;
}