diff options
| author | Stefan Monnier | 2011-03-21 12:42:16 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2011-03-21 12:42:16 -0400 |
| commit | cafdcef32d55cbb44389d7e322e7f973cbb72dfd (patch) | |
| tree | 7ee0c41ea8a589650ce6f4311fb10e61a63807b9 /src/unexaix.c | |
| parent | a08a25d7aaf251aa18f2ef747be53734bc55cae9 (diff) | |
| parent | 4e05e67e4cd0bc1b0a4ef3176a4d0d91c6b3738e (diff) | |
| download | emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.tar.gz emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.zip | |
Merge from trunk
Diffstat (limited to 'src/unexaix.c')
| -rw-r--r-- | src/unexaix.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/unexaix.c b/src/unexaix.c index fe9d13d3e47..df4c5b8905c 100644 --- a/src/unexaix.c +++ b/src/unexaix.c | |||
| @@ -40,6 +40,8 @@ what you give them. Help stamp out software-hoarding! */ | |||
| 40 | */ | 40 | */ |
| 41 | 41 | ||
| 42 | #include <config.h> | 42 | #include <config.h> |
| 43 | #include "unexec.h" | ||
| 44 | |||
| 43 | #define PERROR(file) report_error (file, new) | 45 | #define PERROR(file) report_error (file, new) |
| 44 | #include <a.out.h> | 46 | #include <a.out.h> |
| 45 | /* Define getpagesize () if the system does not. | 47 | /* Define getpagesize () if the system does not. |
| @@ -119,7 +121,8 @@ static void write_segment (int, char *, char *); | |||
| 119 | * | 121 | * |
| 120 | * driving logic. | 122 | * driving logic. |
| 121 | */ | 123 | */ |
| 122 | int unexec (const char *new_name, const char *a_name) | 124 | void |
| 125 | unexec (const char *new_name, const char *a_name) | ||
| 123 | { | 126 | { |
| 124 | int new = -1, a_out = -1; | 127 | int new = -1, a_out = -1; |
| 125 | 128 | ||
| @@ -139,14 +142,13 @@ int unexec (const char *new_name, const char *a_name) | |||
| 139 | || unrelocate_symbols (new, a_out, a_name, new_name) < 0) | 142 | || unrelocate_symbols (new, a_out, a_name, new_name) < 0) |
| 140 | { | 143 | { |
| 141 | close (new); | 144 | close (new); |
| 142 | return -1; | 145 | return; |
| 143 | } | 146 | } |
| 144 | 147 | ||
| 145 | close (new); | 148 | close (new); |
| 146 | if (a_out >= 0) | 149 | if (a_out >= 0) |
| 147 | close (a_out); | 150 | close (a_out); |
| 148 | mark_x (new_name); | 151 | mark_x (new_name); |
| 149 | return 0; | ||
| 150 | } | 152 | } |
| 151 | 153 | ||
| 152 | /* **************************************************************** | 154 | /* **************************************************************** |
| @@ -637,4 +639,3 @@ start_of_text (void) | |||
| 637 | { | 639 | { |
| 638 | return ((char *) 0x10000000); | 640 | return ((char *) 0x10000000); |
| 639 | } | 641 | } |
| 640 | |||