summaryrefslogtreecommitdiff
path: root/src/unexw32.c
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2010-10-03 06:59:56 -0700
committerDan Nicolaescu <dann@ics.uci.edu>2010-10-03 06:59:56 -0700
commitdd5ecd6bb5778143554b5f82cd05bab3234bc5e8 (patch)
tree9238f45cacb7ecca7515d1161ef9ef7a6aa7f03a /src/unexw32.c
parente1b69165cca0ba5012a54c249589d544247217c3 (diff)
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/unexw32.c')
-rw-r--r--src/unexw32.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/unexw32.c b/src/unexw32.c
index d3e4e81248..a4dba647f5 100644
--- a/src/unexw32.c
+++ b/src/unexw32.c
@@ -724,9 +724,8 @@ copy_executable_and_dump_data (file_data *p_infile,
/* Dump out .data and .bss sections into a new executable. */
-void
-unexec (char *new_name, char *old_name, void *start_data, void *start_bss,
- void *entry_address)
+int
+unexec (const char *new_name, const char *old_name)
{
file_data in_file, out_file;
char out_filename[MAX_PATH], in_filename[MAX_PATH];
@@ -821,6 +820,8 @@ unexec (char *new_name, char *old_name, void *start_data, void *start_bss,
close_file_data (&in_file);
close_file_data (&out_file);
+
+ return 0;
}
/* eof */