1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 16:21:07 -08:00

(unexec): Cast result of sbrk.

(run_time_remap): Cat arg to brk.
This commit is contained in:
Richard M. Stallman 1996-06-28 06:31:22 +00:00
parent aa4d9a9e9b
commit 033b699757

View 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 */