(unexec): Cast pointers. Fix error message.
authorKarl Heuer <kwzh@gnu.org>
Thu, 28 Apr 1994 03:49:12 +0000 (03:49 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 28 Apr 1994 03:49:12 +0000 (03:49 +0000)
src/unexmips.c

index a88235a..5987910 100644 (file)
@@ -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;