]> code.delx.au - gnu-emacs/commitdiff
(unexec): Cast result of sbrk.
authorRichard M. Stallman <rms@gnu.org>
Fri, 28 Jun 1996 06:31:22 +0000 (06:31 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 28 Jun 1996 06:31:22 +0000 (06:31 +0000)
(run_time_remap): Cat arg to brk.

src/unexhp9k800.c

index 9e22bd5b3a33f91023c1a6452547e5ec3bb39333..f33340c4d8c1df64e443566eaab682857e52905c 100644 (file)
@@ -60,7 +60,7 @@ int
 run_time_remap (ignored)
      char *ignored;
 {
-  brk (brk_on_dump);
+  brk ((char *) brk_on_dump);
 }
 
 #undef roundup
@@ -100,13 +100,13 @@ unexec (new_name, old_name, new_end_of_text, dummy1, dummy2)
   /* Read the old headers */
   read_header (old, &hdr, &auxhdr);
 
-  brk_on_dump = sbrk (0);
+  brk_on_dump = (long) sbrk (0);
   
   /* Decide how large the new and old data areas are */
   old_size = auxhdr.exec_dsize;
   /* I suspect these two statements are separate
      to avoid a compiler bug in hpux version 8.  */
-  i = sbrk (0);
+  i = (long) sbrk (0);
   new_size = i - auxhdr.exec_dmem;
   
   /* Copy the old file to the new, up to the data space */