forked from Imagelibrary/rtems
Add missing prototypes.
This commit is contained in:
@@ -91,7 +91,7 @@ extern void ps2_set_driver_handler( int port, void ( *handler )( void *, char *
|
||||
* Open up the mouse device.
|
||||
* Returns the fd if successful, or negative if unsuccessful.
|
||||
*/
|
||||
int MOU_Init()
|
||||
int MOU_Init(void)
|
||||
{
|
||||
char *type;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ typedef int COORD; /* device coordinates*/
|
||||
typedef unsigned int BUTTON; /* mouse button mask*/
|
||||
|
||||
/* local routines */
|
||||
int MOU_Init();
|
||||
int MOU_Init(void);
|
||||
int MOU_Data( int ch, COORD *dx, COORD *dy, COORD *dz, BUTTON *bptr );
|
||||
|
||||
/* Mouse Interface */
|
||||
|
||||
@@ -78,7 +78,7 @@ doCRNL(int cr, int nl)
|
||||
int (*videoHook)(char, int *)=0;
|
||||
|
||||
static void
|
||||
advanceCursor()
|
||||
advanceCursor(void)
|
||||
{
|
||||
if (++column == maxCol)
|
||||
doCRNL(1,1);
|
||||
|
||||
@@ -134,8 +134,8 @@ int getDebugChar(void)
|
||||
return val;
|
||||
}
|
||||
|
||||
static void nop(){}
|
||||
static int isOn() {return 1;}
|
||||
static void nop(void){}
|
||||
static int isOn(void) {return 1;}
|
||||
|
||||
void exceptionHandler(int vector, void (*handler)(void))
|
||||
{
|
||||
|
||||
@@ -117,10 +117,10 @@ extern void exceptionHandler (int, void (*handler) (void));
|
||||
|
||||
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 */
|
||||
|
||||
void waitabit ();
|
||||
extern void waitabit (void);
|
||||
|
||||
static const char hexchars[] = "0123456789abcdef";
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ rtems_device_major_number rtems_clock_minor = 0;
|
||||
* This is the ISR handler.
|
||||
*/
|
||||
|
||||
void Clock_isr()
|
||||
void Clock_isr(void)
|
||||
{
|
||||
/* enable_tracing(); */
|
||||
Clock_driver_ticks += 1;
|
||||
|
||||
@@ -76,7 +76,7 @@ void bsp_pretasking_hook(void)
|
||||
|
||||
void bsp_start( void )
|
||||
{
|
||||
void rtems_irq_mngt_init();
|
||||
extern void rtems_irq_mngt_init(void);
|
||||
|
||||
Configuration.work_space_start = (void *)
|
||||
RAM_END - rtems_configuration_get_work_space_size();
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
volatile uint32_t Ttimer_val; /* Updated from ISR!!! */
|
||||
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.
|
||||
@@ -88,7 +88,7 @@ static rtems_raw_irq_connect_data old_raw_irq_data = {
|
||||
BSP_PERIODIC_TIMER + BSP_IRQ_VECTOR_BASE,
|
||||
};
|
||||
|
||||
void Timer_exit()
|
||||
void Timer_exit(void)
|
||||
{
|
||||
if (!i386_delete_idt_entry(&timer_raw_irq_data)) {
|
||||
printk("Timer_exit:Timer raw handler removal failed\n");
|
||||
|
||||
Reference in New Issue
Block a user