diff options
author | Dan Nicolaescu <dann@ics.uci.edu> | 2010-10-03 06:59:56 -0700 |
---|---|---|
committer | Dan Nicolaescu <dann@ics.uci.edu> | 2010-10-03 06:59:56 -0700 |
commit | dd5ecd6bb5778143554b5f82cd05bab3234bc5e8 (patch) | |
tree | 9238f45cacb7ecca7515d1161ef9ef7a6aa7f03a /src/unexhp9k800.c | |
parent | e1b69165cca0ba5012a54c249589d544247217c3 (diff) | |
download | emacs-dd5ecd6bb5778143554b5f82cd05bab3234bc5e8.tar.gz |
Remove unused arguments for unexec.
The third one is never used, and the last two are always passed as zero.
* src/emacs.c (unexec): Add declaration.
(Fdump_emacs): Only pass the first two arguments to unexec.
Simplify #ifdef.
* src/unexw32.c (unexec):
* src/unexsol.c (unexec):
* src/unexhp9k800.c (unexec):
* src/unexcw.c (unexec): Remove the last 3 arguments, unused.
* src/unexelf.c (unexec): Remove the last 3 arguments, unused.
(find_section): Use const.
* src/unexmacosx.c (unexec): Remove the last 3 arguments, unused.
(unexec_error): Declare it NO_RETURN.
* src/unexcoff.c (make_hdr): Assume bss_start is always zero, remove
it as an argument, remove data_start and entry_address arguments, unused.
(unexec): Remove bss_start, data_start and
entry_address arguments.
* src/unexaix.c (make_hdr): Assume bss_start is always zero, remove
it as an argument, remove data_start and entry_address arguments, unused.
(unexec): Remove bss_start, data_start and
entry_address arguments.
Diffstat (limited to 'src/unexhp9k800.c')
-rw-r--r-- | src/unexhp9k800.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/unexhp9k800.c b/src/unexhp9k800.c index cad2a5025ab..b410092b1cc 100644 --- a/src/unexhp9k800.c +++ b/src/unexhp9k800.c @@ -79,12 +79,9 @@ run_time_remap (ignored) /* Create a new a.out file, same as old but with current data space */ - -unexec (new_name, old_name, new_end_of_text, dummy1, dummy2) - char new_name[]; /* name of the new a.out file to be created */ - char old_name[]; /* name of the old a.out file */ - char *new_end_of_text; /* ptr to new edata/etext; NOT USED YET */ - int dummy1, dummy2; /* not used by emacs */ +int +unexec (const char *new_name, /* name of the new a.out file to be created */ + const char *old_name) /* name of the old a.out file */ { int old, new; int old_size, new_size; |