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/unexcoff.c | |
| parent | a08a25d7aaf251aa18f2ef747be53734bc55cae9 (diff) | |
| parent | 4e05e67e4cd0bc1b0a4ef3176a4d0d91c6b3738e (diff) | |
| download | emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.tar.gz emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.zip | |
Merge from trunk
Diffstat (limited to 'src/unexcoff.c')
| -rw-r--r-- | src/unexcoff.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/unexcoff.c b/src/unexcoff.c index 4dafabab689..ef86a400239 100644 --- a/src/unexcoff.c +++ b/src/unexcoff.c | |||
| @@ -50,6 +50,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 50 | */ | 50 | */ |
| 51 | 51 | ||
| 52 | #include <config.h> | 52 | #include <config.h> |
| 53 | #include "unexec.h" | ||
| 54 | |||
| 53 | #define PERROR(file) report_error (file, new) | 55 | #define PERROR(file) report_error (file, new) |
| 54 | 56 | ||
| 55 | #ifndef CANNOT_DUMP /* all rest of file! */ | 57 | #ifndef CANNOT_DUMP /* all rest of file! */ |
| @@ -522,7 +524,7 @@ adjust_lnnoptrs (int writedesc, int readdesc, const char *new_name) | |||
| 522 | * | 524 | * |
| 523 | * driving logic. | 525 | * driving logic. |
| 524 | */ | 526 | */ |
| 525 | int | 527 | void |
| 526 | unexec (const char *new_name, const char *a_name) | 528 | unexec (const char *new_name, const char *a_name) |
| 527 | { | 529 | { |
| 528 | int new = -1, a_out = -1; | 530 | int new = -1, a_out = -1; |
| @@ -543,15 +545,13 @@ unexec (const char *new_name, const char *a_name) | |||
| 543 | ) | 545 | ) |
| 544 | { | 546 | { |
| 545 | close (new); | 547 | close (new); |
| 546 | return -1; | 548 | return; |
| 547 | } | 549 | } |
| 548 | 550 | ||
| 549 | close (new); | 551 | close (new); |
| 550 | if (a_out >= 0) | 552 | if (a_out >= 0) |
| 551 | close (a_out); | 553 | close (a_out); |
| 552 | mark_x (new_name); | 554 | mark_x (new_name); |
| 553 | return 0; | ||
| 554 | } | 555 | } |
| 555 | 556 | ||
| 556 | #endif /* not CANNOT_DUMP */ | 557 | #endif /* not CANNOT_DUMP */ |
| 557 | |||