comparison src/unexcw.c @ 110729:99084f50aa8e

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.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sun, 03 Oct 2010 06:59:56 -0700
parents 1d1d5d9bd884
children 417b1e4d63cd
comparison
equal deleted inserted replaced
110728:ab7396ada96a 110729:99084f50aa8e
246 } 246 }
247 return (modified); 247 return (modified);
248 } 248 }
249 249
250 int 250 int
251 unexec (char *outfile, char *infile, unsigned start_data, unsigned d1, 251 unexec (const char *outfile, const char *infile)
252 unsigned d2)
253 { 252 {
254 char infile_buffer[FILENAME_MAX]; 253 char infile_buffer[FILENAME_MAX];
255 char outfile_buffer[FILENAME_MAX]; 254 char outfile_buffer[FILENAME_MAX];
256 int fd_in; 255 int fd_in;
257 int fd_out; 256 int fd_out;