# HG changeset patch # User Richard M. Stallman # Date 835943482 0 # Node ID 575a17a3c9fbf395b2e664b03ccb5bacb19c3c93 # Parent 926ef4afc174d873cd5ae3719b317fe43eb9e0a0 (unexec): Cast result of sbrk. (run_time_remap): Cat arg to brk. diff -r 926ef4afc174 -r 575a17a3c9fb src/unexhp9k800.c --- a/src/unexhp9k800.c Thu Jun 27 23:20:46 1996 +0000 +++ b/src/unexhp9k800.c Fri Jun 28 06:31:22 1996 +0000 @@ -60,7 +60,7 @@ run_time_remap (ignored) char *ignored; { - brk (brk_on_dump); + brk ((char *) brk_on_dump); } #undef roundup @@ -100,13 +100,13 @@ /* 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 */