Cleanup with gcc.

This commit is contained in:
Jorrit Herder 2005-08-25 12:04:36 +00:00
parent a61e8f28c7
commit a238c1ba48
4 changed files with 4 additions and 20 deletions

View file

@ -54,11 +54,6 @@ PUBLIC void fproc_dmp()
PUBLIC void dtab_dmp()
{
int i;
char *file[] = {
"not used ", "/dev/mem ", "/dev/fd0 ", "/dev/c0 ", "/dev/tty0 ",
"/dev/tty ", "/dev/lp ", "/dev/ip ", "/dev/c1 ", "not used ",
"/dev/c2 ", "not used ", "/dev/c3 ", "/dev/audio", "/dev/mixer",
};
getsysinfo(FS_PROC_NR, SI_DMAP_TAB, dmap);
@ -69,17 +64,6 @@ PUBLIC void dtab_dmp()
if (dmap[i].dmap_driver == 0) continue;
printf("%5d ", i);
printf("%4d\n", dmap[i].dmap_driver);
#if DEAD_CODE
if (dmap[i].dmap_opcl == no_dev) printf(" no_dev");
else if (dmap[i].dmap_opcl == gen_opcl) printf("gen_opcl");
else printf("%8x", dmap[i].dmap_opcl);
if ((void *)dmap[i].dmap_io == (void *)no_dev) printf(" no_dev");
else if (dmap[i].dmap_io == gen_io) printf(" gen_io");
else printf("%8x", dmap[i].dmap_io);
#endif
}
}

View file

@ -74,7 +74,6 @@ PUBLIC void kmessages_dmp()
{
struct kmessages kmess; /* get copy of kernel messages */
char print_buf[KMESS_BUF_SIZE+1]; /* this one is used to print */
int next, size; /* vars returned by sys_kmess() */
int start; /* calculate start of messages */
int r;
@ -132,7 +131,7 @@ PUBLIC void monparams_dmp()
*===========================================================================*/
PUBLIC void irqtab_dmp()
{
int i,j,r;
int i,r;
struct irq_hook irq_hooks[NR_IRQ_HOOKS];
struct irq_hook *e; /* irq tab entry */
char *irq[] = {

View file

@ -30,7 +30,7 @@ FORWARD _PROTOTYPE(void reply, (int whom, int result) );
/*===========================================================================*
* main *
*===========================================================================*/
PUBLIC void main(int argc, char **argv)
PUBLIC int main(int argc, char **argv)
{
/* This is the main routine of this service. The main loop consists of
* three major activities: getting new work, processing the work, and
@ -68,6 +68,7 @@ PUBLIC void main(int argc, char **argv)
reply(who, result);
}
}
return(OK); /* shouldn't come here */
}
/*===========================================================================*

View file

@ -1,7 +1,7 @@
/* Function prototypes. */
/* main.c */
_PROTOTYPE( void main, (int argc, char **argv) );
_PROTOTYPE( int main, (int argc, char **argv) );
/* dmp.c */
_PROTOTYPE( int do_fkey_pressed, (message *m) );