comparison src/unexnt.c @ 2286:04bc9d2f42c7

[xemacs-hg @ 2004-09-20 19:18:55 by james] Mark all unused parameters as unused. Also eliminate some unneeded local variables.
author james
date Mon, 20 Sep 2004 19:20:08 +0000
parents e22b0213b713
children ecf1ebac70d8
comparison
equal deleted inserted replaced
2285:914c5afaac33 2286:04bc9d2f42c7
178 return 0; /* not reached? */ 178 return 0; /* not reached? */
179 } 179 }
180 180
181 /* Dump out .data and .bss sections into a new executable. */ 181 /* Dump out .data and .bss sections into a new executable. */
182 int 182 int
183 unexec (Ibyte *new_name, Ibyte *old_name, unsigned int start_data, 183 unexec (Ibyte *new_name, Ibyte *old_name, unsigned int UNUSED (start_data),
184 unsigned int start_bss, unsigned int entry_address) 184 unsigned int UNUSED (start_bss), unsigned int UNUSED (entry_address))
185 { 185 {
186 file_data in_file, out_file; 186 file_data in_file, out_file;
187 Ibyte *out_filename = alloca_ibytes (qxestrlen (new_name) + 10); 187 Ibyte *out_filename = alloca_ibytes (qxestrlen (new_name) + 10);
188 Ibyte *in_filename = alloca_ibytes (qxestrlen (old_name) + 10); 188 Ibyte *in_filename = alloca_ibytes (qxestrlen (old_name) + 10);
189 unsigned long size; 189 unsigned long size;
477 memcpy ((UChar_Binary *) p_outfile->file_base + index, 477 memcpy ((UChar_Binary *) p_outfile->file_base + index,
478 (UChar_Binary *) p_infile->file_base + index, size); 478 (UChar_Binary *) p_infile->file_base + index, size);
479 } 479 }
480 480
481 static void 481 static void
482 dump_bss_and_heap (file_data *p_infile, file_data *p_outfile) 482 dump_bss_and_heap (file_data *UNUSED (p_infile), file_data *p_outfile)
483 { 483 {
484 UChar_Binary *heap_data; 484 UChar_Binary *heap_data;
485 unsigned long size, index; 485 unsigned long size, index;
486 486
487 DUMP_MSG (("Dumping heap onto end of executable...\n")); 487 DUMP_MSG (("Dumping heap onto end of executable...\n"));