Mercurial > hg > xemacs-beta
comparison src/unexhp9k3.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 | 13e47461d509 |
children |
comparison
equal
deleted
inserted
replaced
2285:914c5afaac33 | 2286:04bc9d2f42c7 |
---|---|
49 #include <unistd.h> | 49 #include <unistd.h> |
50 #include <ctype.h> | 50 #include <ctype.h> |
51 #include <sys/dir.h> | 51 #include <sys/dir.h> |
52 | 52 |
53 #include "sysdep.h" | 53 #include "sysdep.h" |
54 #include "compiler.h" | |
54 | 55 |
55 /* XEmacs: Richard Cognot <cognot@ensg.u-nancy.fr> says we need these */ | 56 /* XEmacs: Richard Cognot <cognot@ensg.u-nancy.fr> says we need these */ |
56 extern void perror(const char*); | 57 extern void perror(const char*); |
57 extern int sys_nerr; | 58 extern int sys_nerr; |
58 extern char *sys_errlist[]; | 59 extern char *sys_errlist[]; |
272 * assuming that it can not be 0. | 273 * assuming that it can not be 0. |
273 */ | 274 */ |
274 static void *dynamic_addr = (void *) &_DYNAMIC; | 275 static void *dynamic_addr = (void *) &_DYNAMIC; |
275 | 276 |
276 int | 277 int |
277 unexec (char *new_name, char *old_name, | 278 unexec (char *new_name, char *old_name, unsigned int emacs_edata, |
278 unsigned int emacs_edata, unsigned int dummy1, unsigned int dummy2) | 279 unsigned int UNUSED (dummy1), unsigned int UNUSED (dummy2)) |
279 { | 280 { |
280 /* /dld.sl data */ | 281 /* /dld.sl data */ |
281 struct dynamic *ld = 0; | 282 struct dynamic *ld = 0; |
282 /* old and new state */ | 283 /* old and new state */ |
283 int old_fd; | 284 int old_fd; |
504 return 0; | 505 return 0; |
505 } | 506 } |
506 | 507 |
507 | 508 |
508 int | 509 int |
509 run_time_remap (char *dummy) | 510 run_time_remap (char *UNUSED (dummy)) |
510 { | 511 { |
511 unsigned long current_sbrk = (unsigned long) sbrk (0); | 512 unsigned long current_sbrk = (unsigned long) sbrk (0); |
512 | 513 |
513 if (sbrk_of_0_at_unexec < current_sbrk) | 514 if (sbrk_of_0_at_unexec < current_sbrk) |
514 fprintf (stderr, "Absurd new brk addr = 0x%x (current = 0x%x)\n", | 515 fprintf (stderr, "Absurd new brk addr = 0x%x (current = 0x%x)\n", |