summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-06-28 06:31:22 +0000
committerRichard M. Stallman <rms@gnu.org>1996-06-28 06:31:22 +0000
commit54bd2449265a4157b2045a248ae2eb96b7b839e2 (patch)
tree919cd592f633a8f1b36720e37637adfff1c30403 /src
parenta90d79faf748d39b7944b07ea83109dfc8f37f00 (diff)
downloademacs-54bd2449265a4157b2045a248ae2eb96b7b839e2.tar.gz
(unexec): Cast result of sbrk.
(run_time_remap): Cat arg to brk.
Diffstat (limited to 'src')
-rw-r--r--src/unexhp9k800.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unexhp9k800.c b/src/unexhp9k800.c
index 9e22bd5b3a3..f33340c4d8c 100644
--- a/src/unexhp9k800.c
+++ b/src/unexhp9k800.c
@@ -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 */