Add missing prototypes.

This commit is contained in:
Ralf Corsepius
2008-08-18 10:46:09 +00:00
parent 0fd168d6d7
commit 3cd35d4669
8 changed files with 11 additions and 11 deletions

View File

@@ -91,7 +91,7 @@ extern void ps2_set_driver_handler( int port, void ( *handler )( void *, char *
* Open up the mouse device. * Open up the mouse device.
* Returns the fd if successful, or negative if unsuccessful. * Returns the fd if successful, or negative if unsuccessful.
*/ */
int MOU_Init() int MOU_Init(void)
{ {
char *type; char *type;

View File

@@ -16,7 +16,7 @@ typedef int COORD; /* device coordinates*/
typedef unsigned int BUTTON; /* mouse button mask*/ typedef unsigned int BUTTON; /* mouse button mask*/
/* local routines */ /* local routines */
int MOU_Init(); int MOU_Init(void);
int MOU_Data( int ch, COORD *dx, COORD *dy, COORD *dz, BUTTON *bptr ); int MOU_Data( int ch, COORD *dx, COORD *dy, COORD *dz, BUTTON *bptr );
/* Mouse Interface */ /* Mouse Interface */

View File

@@ -78,7 +78,7 @@ doCRNL(int cr, int nl)
int (*videoHook)(char, int *)=0; int (*videoHook)(char, int *)=0;
static void static void
advanceCursor() advanceCursor(void)
{ {
if (++column == maxCol) if (++column == maxCol)
doCRNL(1,1); doCRNL(1,1);

View File

@@ -134,8 +134,8 @@ int getDebugChar(void)
return val; return val;
} }
static void nop(){} static void nop(void){}
static int isOn() {return 1;} static int isOn(void) {return 1;}
void exceptionHandler(int vector, void (*handler)(void)) void exceptionHandler(int vector, void (*handler)(void))
{ {

View File

@@ -117,10 +117,10 @@ extern void exceptionHandler (int, void (*handler) (void));
static char initialized; /* boolean flag. != 0 means we've been initialized */ static char initialized; /* boolean flag. != 0 means we've been initialized */
int remote_debug; extern int remote_debug;
/* debug > 0 prints ill-formed commands in valid packets & checksum errors */ /* debug > 0 prints ill-formed commands in valid packets & checksum errors */
void waitabit (); extern void waitabit (void);
static const char hexchars[] = "0123456789abcdef"; static const char hexchars[] = "0123456789abcdef";

View File

@@ -44,7 +44,7 @@ rtems_device_major_number rtems_clock_minor = 0;
* This is the ISR handler. * This is the ISR handler.
*/ */
void Clock_isr() void Clock_isr(void)
{ {
/* enable_tracing(); */ /* enable_tracing(); */
Clock_driver_ticks += 1; Clock_driver_ticks += 1;

View File

@@ -76,7 +76,7 @@ void bsp_pretasking_hook(void)
void bsp_start( void ) void bsp_start( void )
{ {
void rtems_irq_mngt_init(); extern void rtems_irq_mngt_init(void);
Configuration.work_space_start = (void *) Configuration.work_space_start = (void *)
RAM_END - rtems_configuration_get_work_space_size(); RAM_END - rtems_configuration_get_work_space_size();

View File

@@ -30,7 +30,7 @@
volatile uint32_t Ttimer_val; /* Updated from ISR!!! */ volatile uint32_t Ttimer_val; /* Updated from ISR!!! */
rtems_boolean Timer_driver_Find_average_overhead; rtems_boolean Timer_driver_Find_average_overhead;
extern void timerisr(); extern void timerisr(void);
/* /*
* Number of us per timer interrupt. Note: 1 us == 1 tick. * Number of us per timer interrupt. Note: 1 us == 1 tick.
@@ -88,7 +88,7 @@ static rtems_raw_irq_connect_data old_raw_irq_data = {
BSP_PERIODIC_TIMER + BSP_IRQ_VECTOR_BASE, BSP_PERIODIC_TIMER + BSP_IRQ_VECTOR_BASE,
}; };
void Timer_exit() void Timer_exit(void)
{ {
if (!i386_delete_idt_entry(&timer_raw_irq_data)) { if (!i386_delete_idt_entry(&timer_raw_irq_data)) {
printk("Timer_exit:Timer raw handler removal failed\n"); printk("Timer_exit:Timer raw handler removal failed\n");