Mercurial > hg > xemacs-beta
comparison src/unexec.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 | 4542b72c005e |
children | facf3239ba30 |
comparison
equal
deleted
inserted
replaced
2285:914c5afaac33 | 2286:04bc9d2f42c7 |
---|---|
218 | 218 |
219 #ifdef USG5 | 219 #ifdef USG5 |
220 #include <fcntl.h> | 220 #include <fcntl.h> |
221 #endif | 221 #endif |
222 | 222 |
223 #include "compiler.h" | |
224 | |
223 #ifndef O_RDONLY | 225 #ifndef O_RDONLY |
224 #define O_RDONLY 0 | 226 #define O_RDONLY 0 |
225 #endif | 227 #endif |
226 #ifndef O_RDWR | 228 #ifndef O_RDWR |
227 #define O_RDWR 2 | 229 #define O_RDWR 2 |
228 #endif | 230 #endif |
229 | |
230 | 231 |
231 extern char *start_of_text (); /* Start of text */ | 232 extern char *start_of_text (); /* Start of text */ |
232 | 233 |
233 extern void *start_of_data (); /* Start of initialized data */ | 234 extern void *start_of_data (); /* Start of initialized data */ |
234 | 235 |
810 * copy_text_and_data | 811 * copy_text_and_data |
811 * | 812 * |
812 * Copy the text and data segments from memory to the new a.out | 813 * Copy the text and data segments from memory to the new a.out |
813 */ | 814 */ |
814 static int | 815 static int |
815 copy_text_and_data (int new, int a_out) | 816 copy_text_and_data (int new, |
817 #if defined (COFF) && defined (USG_SHARED_LIBRARIES) | |
818 int a_out | |
819 #else | |
820 int UNUSED (a_out) | |
821 #endif | |
822 ) | |
816 { | 823 { |
817 char *end; | 824 char *end; |
818 char *ptr; | 825 char *ptr; |
819 | 826 |
820 #ifdef COFF | 827 #ifdef COFF |
1152 a reasonable size buffer. But I don't have time to work on such | 1159 a reasonable size buffer. But I don't have time to work on such |
1153 things, so I am installing it as submitted to me. -- RMS. */ | 1160 things, so I am installing it as submitted to me. -- RMS. */ |
1154 | 1161 |
1155 int | 1162 int |
1156 adjust_lnnoptrs (writedesc, readdesc, new_name) | 1163 adjust_lnnoptrs (writedesc, readdesc, new_name) |
1157 int writedesc; | 1164 int UNUSED (writedesc); |
1158 int readdesc; | 1165 int UNUSED (readdesc); |
1159 char *new_name; | 1166 char *new_name; |
1160 { | 1167 { |
1161 int nsyms; | 1168 int nsyms; |
1162 int new; | 1169 int new; |
1163 #if defined (amdahl_uts) || defined (pfa) | 1170 #if defined (amdahl_uts) || defined (pfa) |