comparison src/unexhp9k800.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 abe6d1db359e
children facf3239ba30
comparison
equal deleted inserted replaced
2285:914c5afaac33 2286:04bc9d2f42c7
99 99
100 /* Create a new a.out file, same as old but with current data space */ 100 /* Create a new a.out file, same as old but with current data space */
101 int 101 int
102 unexec (char *new_name, /* name of the new a.out file to be created */ 102 unexec (char *new_name, /* name of the new a.out file to be created */
103 char *old_name, /* name of the old a.out file */ 103 char *old_name, /* name of the old a.out file */
104 uintptr_t new_end_of_text, /* ptr to new edata/etext; NOT USED YET */ 104 uintptr_t UNUSED (new_end_of_text), /* ptr to new edata/etext */
105 uintptr_t dummy1, uintptr_t dummy2) /* not used by emacs */ 105 uintptr_t UNUSED (dummy1), /* not used by emacs */
106 uintptr_t UNUSED (dummy2))
106 { 107 {
107 int old, new; 108 int old, new;
108 int old_size, new_size; 109 int old_size, new_size;
109 struct header hdr; 110 struct header hdr;
110 struct som_exec_auxhdr auxhdr; 111 struct som_exec_auxhdr auxhdr;
162 } 163 }
163 164
164 /* Save current data space in the file, update header. */ 165 /* Save current data space in the file, update header. */
165 166
166 void 167 void
167 save_data_space (int file, struct header *hdr, 168 save_data_space (int file, struct header *UNUSED (hdr),
168 struct som_exec_auxhdr *auxhdr, int size) 169 struct som_exec_auxhdr *auxhdr, int size)
169 { 170 {
170 /* Write the entire data space out to the file */ 171 /* Write the entire data space out to the file */
171 if (write(file, (void *)auxhdr->exec_dmem, size) != size) 172 if (write(file, (void *)auxhdr->exec_dmem, size) != size)
172 { perror("Can't save new data space"); exit(1); } 173 { perror("Can't save new data space"); exit(1); }
356 } 357 }
357 358
358 /* run_time_remap is the magic called by startup code in the dumped executable 359 /* run_time_remap is the magic called by startup code in the dumped executable
359 if RUN_TIME_REMAP is set. */ 360 if RUN_TIME_REMAP is set. */
360 int 361 int
361 run_time_remap (char *dummy) 362 run_time_remap (char *UNUSED (dummy))
362 { 363 {
363 Restore_Shared_Data (); 364 Restore_Shared_Data ();
364 return 0; 365 return 0;
365 } 366 }
366 #endif /* HPUX_USE_SHLIBS */ 367 #endif /* HPUX_USE_SHLIBS */