aboutsummaryrefslogtreecommitdiffstats
path: root/src/unexmips.c
diff options
context:
space:
mode:
authorKarl Heuer <[email protected]>1994-04-28 03:49:12 +0000
committerKarl Heuer <[email protected]>1994-04-28 03:49:12 +0000
commitc6bfa94791727ea94b030bf45d248d1b7fe90b64 (patch)
tree91d17e4fd1ac819a7814197971b76d831db2de57 /src/unexmips.c
parent09642d9796abbc1501544f783bd3fc57d925168e (diff)
(unexec): Cast pointers. Fix error message.
Diffstat (limited to 'src/unexmips.c')
-rw-r--r--src/unexmips.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unexmips.c b/src/unexmips.c
index a88235a464..598791098e 100644
--- a/src/unexmips.c
+++ b/src/unexmips.c
@@ -235,10 +235,10 @@ unexec (new_name, a_name, data_start, bss_start, entry_address)
bss_section->s_scnptr = scnptr;
}
- WRITE (new, TEXT_START, hdr.aout.tsize,
- "writing text section to %s", new_name);
- WRITE (new, DATA_START, hdr.aout.dsize,
+ WRITE (new, (char *)TEXT_START, hdr.aout.tsize,
"writing text section to %s", new_name);
+ WRITE (new, (char *)DATA_START, hdr.aout.dsize,
+ "writing data section to %s", new_name);
SEEK (old, hdr.fhdr.f_symptr, "seeking to start of symbols in %s", a_name);
errno = EEOF;