summaryrefslogtreecommitdiff
path: root/i386/i386at
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-29 22:54:20 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-15 19:19:23 +0100
commitbe78a5c7937a31128a3624dcace9df23492866f9 (patch)
tree18fe5f79b66f47aef9658d788fea84ef425d8127 /i386/i386at
parent6ff7e82fab67f23f0aa4caa18b886ce03c060f4d (diff)
Declare void argument lists
Diffstat (limited to 'i386/i386at')
-rw-r--r--i386/i386at/int_init.c2
-rw-r--r--i386/i386at/kd.c62
-rw-r--r--i386/i386at/kd_event.c6
-rw-r--r--i386/i386at/model_dep.c2
-rw-r--r--i386/i386at/rtc.c4
5 files changed, 38 insertions, 38 deletions
diff --git a/i386/i386at/int_init.c b/i386/i386at/int_init.c
index 0f00b868..43daad8b 100644
--- a/i386/i386at/int_init.c
+++ b/i386/i386at/int_init.c
@@ -27,7 +27,7 @@
/* defined in locore.S */
extern vm_offset_t int_entry_table[];
-void int_init()
+void int_init(void)
{
int i;
diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c
index 2404eaff..a326626b 100644
--- a/i386/i386at/kd.c
+++ b/i386/i386at/kd.c
@@ -108,7 +108,7 @@ struct tty kd_tty;
extern boolean_t rebootflag;
static void charput(), charmvup(), charmvdown(), charclear(), charsetcursor();
-static void kd_noopreset();
+static void kd_noopreset(void);
/*
* These routines define the interface to the device-specific layer.
@@ -358,7 +358,7 @@ int kd_pollc = 0;
* Warning: uses outb(). You may prefer to use kd_debug_put.
*/
void
-feep()
+feep(void)
{
int i;
@@ -369,7 +369,7 @@ feep()
}
void
-pause()
+pause(void)
{
int i;
@@ -862,7 +862,7 @@ int vec;
* drop the ack on the floor.
*/
void
-kd_handle_ack()
+kd_handle_ack(void)
{
switch (kd_ack) {
case SET_LEDS:
@@ -887,7 +887,7 @@ kd_handle_ack()
* Resend a missed keyboard command or data byte.
*/
void
-kd_resend()
+kd_resend(void)
{
if (kd_ack == NOT_WAITING)
printf("unexpected RESEND from keyboard\n");
@@ -1147,7 +1147,7 @@ kdstop(tp, flags)
*
*/
void
-kdinit()
+kdinit(void)
{
unsigned char k_comm; /* keyboard command byte */
@@ -1235,7 +1235,7 @@ kd_belloff(void * param)
*
*/
void
-kd_bellon()
+kd_bellon(void)
{
unsigned char status;
@@ -1346,7 +1346,7 @@ csrpos_t newpos;
*
*/
void
-kd_scrollup()
+kd_scrollup(void)
{
csrpos_t to;
csrpos_t from;
@@ -1376,7 +1376,7 @@ kd_scrollup()
*
*/
void
-kd_scrolldn()
+kd_scrolldn(void)
{
csrpos_t to;
csrpos_t from;
@@ -1410,7 +1410,7 @@ kd_scrolldn()
*
*/
void
-kd_parseesc()
+kd_parseesc(void)
{
u_char *escp;
@@ -1747,7 +1747,7 @@ u_char *cp;
}
void
-kd_tab()
+kd_tab(void)
{
int i;
@@ -1768,7 +1768,7 @@ kd_tab()
*
*/
void
-kd_cls()
+kd_cls(void)
{
(*kd_dclear)(0, ONE_PAGE/ONE_SPACE, kd_attr);
return;
@@ -1786,7 +1786,7 @@ kd_cls()
*
*/
void
-kd_home()
+kd_home(void)
{
kd_setpos(0);
return;
@@ -1803,7 +1803,7 @@ kd_home()
*
*/
void
-kd_up()
+kd_up(void)
{
if (kd_curpos < ONE_LINE)
kd_scrolldn();
@@ -1823,7 +1823,7 @@ kd_up()
*
*/
void
-kd_down()
+kd_down(void)
{
if (kd_curpos >= (ONE_PAGE - ONE_LINE))
kd_scrollup();
@@ -1843,7 +1843,7 @@ kd_down()
*
*/
void
-kd_right()
+kd_right(void)
{
if (kd_curpos < (ONE_PAGE - ONE_SPACE))
kd_setpos(kd_curpos + ONE_SPACE);
@@ -1865,7 +1865,7 @@ kd_right()
*
*/
void
-kd_left()
+kd_left(void)
{
if (0 < kd_curpos)
kd_setpos(kd_curpos - ONE_SPACE);
@@ -1884,7 +1884,7 @@ kd_left()
*
*/
void
-kd_cr()
+kd_cr(void)
{
kd_setpos(BEG_OF_LINE(kd_curpos));
return;
@@ -1902,7 +1902,7 @@ kd_cr()
*
*/
void
-kd_cltobcur()
+kd_cltobcur(void)
{
csrpos_t start;
int count;
@@ -1925,7 +1925,7 @@ kd_cltobcur()
*
*/
void
-kd_cltopcur()
+kd_cltopcur(void)
{
int count;
@@ -1945,7 +1945,7 @@ kd_cltopcur()
*
*/
void
-kd_cltoecur()
+kd_cltoecur(void)
{
csrpos_t i;
csrpos_t hold;
@@ -1968,7 +1968,7 @@ kd_cltoecur()
*
*/
void
-kd_clfrbcur()
+kd_clfrbcur(void)
{
csrpos_t i;
@@ -2136,7 +2136,7 @@ int number;
*
*/
void
-kd_eraseln()
+kd_eraseln(void)
{
csrpos_t i;
csrpos_t stop;
@@ -2264,14 +2264,14 @@ unsigned char ch;
* read.
*/
unsigned char
-kd_getdata()
+kd_getdata(void)
{
while ((inb(K_STATUS) & K_OBUF_FUL) == 0);
return(inb(K_RDWR));
}
unsigned char
-kd_cmdreg_read()
+kd_cmdreg_read(void)
{
int ch=KC_CMD_READ;
@@ -2295,7 +2295,7 @@ int ch=KC_CMD_WRITE;
}
void
-kd_mouse_drain()
+kd_mouse_drain(void)
{
int i;
while(inb(K_STATUS) & K_IBUF_FUL);
@@ -2357,7 +2357,7 @@ u_char val;
}
void
-kd_setleds2()
+kd_setleds2(void)
{
kd_senddata(kd_nextled);
}
@@ -2381,7 +2381,7 @@ u_char val;
}
void
-kdreboot()
+kdreboot(void)
{
(*kd_dreset)();
@@ -2494,7 +2494,7 @@ int new_button = 0;
* Initialization specific to character-based graphics adapters.
*/
void
-kd_xga_init()
+kd_xga_init(void)
{
csrpos_t xga_getpos();
unsigned char screen;
@@ -2567,7 +2567,7 @@ kd_xga_init()
*
*/
csrpos_t
-xga_getpos()
+xga_getpos(void)
{
unsigned char low;
@@ -2670,7 +2670,7 @@ char chattr;
* No-op reset routine for kd_dreset.
*/
static void
-kd_noopreset()
+kd_noopreset(void)
{
}
diff --git a/i386/i386at/kd_event.c b/i386/i386at/kd_event.c
index 4e7b00a6..ac87b205 100644
--- a/i386/i386at/kd_event.c
+++ b/i386/i386at/kd_event.c
@@ -91,7 +91,7 @@ static boolean_t initialized = FALSE;
*/
void
-kbdinit()
+kbdinit(void)
{
spl_t s = SPLKD();
@@ -343,7 +343,7 @@ u_int *p;
}
void
-X_kdb_enter()
+X_kdb_enter(void)
{
u_int *u_ip, *endp;
@@ -354,7 +354,7 @@ X_kdb_enter()
}
void
-X_kdb_exit()
+X_kdb_exit(void)
{
u_int *u_ip, *endp;
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 5015d410..10c0c41d 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -196,7 +196,7 @@ void machine_idle (int cpu)
#endif /* MACH_HYP */
}
-void machine_relax ()
+void machine_relax (void)
{
asm volatile ("rep; nop" : : : "memory");
}
diff --git a/i386/i386at/rtc.c b/i386/i386at/rtc.c
index 98f157f9..ff4309be 100644
--- a/i386/i386at/rtc.c
+++ b/i386/i386at/rtc.c
@@ -56,7 +56,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
static boolean_t first_rtcopen_ever = TRUE;
void
-rtcinit()
+rtcinit(void)
{
outb(RTC_ADDR, RTC_A);
outb(RTC_DATA, RTC_DIV2 | RTC_RATE6);
@@ -171,7 +171,7 @@ readtodc(tp)
}
int
-writetodc()
+writetodc(void)
{
struct rtc_st rtclk;
time_t n;