diff options
| author | Richard M. Stallman | 1996-06-28 06:31:22 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-06-28 06:31:22 +0000 |
| commit | 033b699757d924eaaafa357d141c7abde5bc9eaa (patch) | |
| tree | f81a597a92dda00ecab916adee39bfb27678d02e /src | |
| parent | aa4d9a9e9bb0a33414f9c5fde5e63ecf8b972c7a (diff) | |
| download | emacs-033b699757d924eaaafa357d141c7abde5bc9eaa.tar.gz emacs-033b699757d924eaaafa357d141c7abde5bc9eaa.zip | |
(unexec): Cast result of sbrk.
(run_time_remap): Cat arg to brk.
Diffstat (limited to 'src')
| -rw-r--r-- | src/unexhp9k800.c | 6 |
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 | |||
| 60 | run_time_remap (ignored) | 60 | run_time_remap (ignored) |
| 61 | char *ignored; | 61 | char *ignored; |
| 62 | { | 62 | { |
| 63 | brk (brk_on_dump); | 63 | brk ((char *) brk_on_dump); |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | #undef roundup | 66 | #undef roundup |
| @@ -100,13 +100,13 @@ unexec (new_name, old_name, new_end_of_text, dummy1, dummy2) | |||
| 100 | /* Read the old headers */ | 100 | /* Read the old headers */ |
| 101 | read_header (old, &hdr, &auxhdr); | 101 | read_header (old, &hdr, &auxhdr); |
| 102 | 102 | ||
| 103 | brk_on_dump = sbrk (0); | 103 | brk_on_dump = (long) sbrk (0); |
| 104 | 104 | ||
| 105 | /* Decide how large the new and old data areas are */ | 105 | /* Decide how large the new and old data areas are */ |
| 106 | old_size = auxhdr.exec_dsize; | 106 | old_size = auxhdr.exec_dsize; |
| 107 | /* I suspect these two statements are separate | 107 | /* I suspect these two statements are separate |
| 108 | to avoid a compiler bug in hpux version 8. */ | 108 | to avoid a compiler bug in hpux version 8. */ |
| 109 | i = sbrk (0); | 109 | i = (long) sbrk (0); |
| 110 | new_size = i - auxhdr.exec_dmem; | 110 | new_size = i - auxhdr.exec_dmem; |
| 111 | 111 | ||
| 112 | /* Copy the old file to the new, up to the data space */ | 112 | /* Copy the old file to the new, up to the data space */ |