Cleanup with gcc.
This commit is contained in:
parent
a61e8f28c7
commit
a238c1ba48
@ -54,11 +54,6 @@ PUBLIC void fproc_dmp()
|
|||||||
PUBLIC void dtab_dmp()
|
PUBLIC void dtab_dmp()
|
||||||
{
|
{
|
||||||
int i;
|
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);
|
getsysinfo(FS_PROC_NR, SI_DMAP_TAB, dmap);
|
||||||
|
|
||||||
@ -69,17 +64,6 @@ PUBLIC void dtab_dmp()
|
|||||||
if (dmap[i].dmap_driver == 0) continue;
|
if (dmap[i].dmap_driver == 0) continue;
|
||||||
printf("%5d ", i);
|
printf("%5d ", i);
|
||||||
printf("%4d\n", dmap[i].dmap_driver);
|
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
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,6 @@ PUBLIC void kmessages_dmp()
|
|||||||
{
|
{
|
||||||
struct kmessages kmess; /* get copy of kernel messages */
|
struct kmessages kmess; /* get copy of kernel messages */
|
||||||
char print_buf[KMESS_BUF_SIZE+1]; /* this one is used to print */
|
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 start; /* calculate start of messages */
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
@ -132,7 +131,7 @@ PUBLIC void monparams_dmp()
|
|||||||
*===========================================================================*/
|
*===========================================================================*/
|
||||||
PUBLIC void irqtab_dmp()
|
PUBLIC void irqtab_dmp()
|
||||||
{
|
{
|
||||||
int i,j,r;
|
int i,r;
|
||||||
struct irq_hook irq_hooks[NR_IRQ_HOOKS];
|
struct irq_hook irq_hooks[NR_IRQ_HOOKS];
|
||||||
struct irq_hook *e; /* irq tab entry */
|
struct irq_hook *e; /* irq tab entry */
|
||||||
char *irq[] = {
|
char *irq[] = {
|
||||||
|
@ -30,7 +30,7 @@ FORWARD _PROTOTYPE(void reply, (int whom, int result) );
|
|||||||
/*===========================================================================*
|
/*===========================================================================*
|
||||||
* main *
|
* 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
|
/* This is the main routine of this service. The main loop consists of
|
||||||
* three major activities: getting new work, processing the work, and
|
* three major activities: getting new work, processing the work, and
|
||||||
@ -68,6 +68,7 @@ PUBLIC void main(int argc, char **argv)
|
|||||||
reply(who, result);
|
reply(who, result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return(OK); /* shouldn't come here */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*===========================================================================*
|
/*===========================================================================*
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* Function prototypes. */
|
/* Function prototypes. */
|
||||||
|
|
||||||
/* main.c */
|
/* main.c */
|
||||||
_PROTOTYPE( void main, (int argc, char **argv) );
|
_PROTOTYPE( int main, (int argc, char **argv) );
|
||||||
|
|
||||||
/* dmp.c */
|
/* dmp.c */
|
||||||
_PROTOTYPE( int do_fkey_pressed, (message *m) );
|
_PROTOTYPE( int do_fkey_pressed, (message *m) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user