diff src/unexmips.c @ 7151:1edd14fa94ae

(unexec): Cast pointers. Fix error message.
author Karl Heuer <kwzh@gnu.org>
date Thu, 28 Apr 1994 03:49:12 +0000
parents 999daf5b65b6
children 0c728a1b2bed
line wrap: on
line diff
--- a/src/unexmips.c	Thu Apr 28 03:44:48 1994 +0000
+++ b/src/unexmips.c	Thu Apr 28 03:49:12 1994 +0000
@@ -235,10 +235,10 @@
       bss_section->s_scnptr = scnptr;
     }
 
-  WRITE (new, TEXT_START, hdr.aout.tsize,
+  WRITE (new, (char *)TEXT_START, hdr.aout.tsize,
 	 "writing text section to %s", new_name);
-  WRITE (new, DATA_START, hdr.aout.dsize,
-	 "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;