aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/clext.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-01-03 17:43:37 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-01-03 17:43:37 -0500
commit1ca05b0f393c0201c0e8efe87831edddb6a53532 (patch)
tree4419fdb78cba0962313f8e6bcf35d16a3401183e /vgasrc/clext.c
parentb5bb9db8425b3b463e634874e3a201a354d55ac7 (diff)
downloadseabios-1ca05b0f393c0201c0e8efe87831edddb6a53532.tar.gz
Be sure to add "void" to all function prototypes that take no args.
Omitting "void" leads to a K&R style declaration which was not intended.
Diffstat (limited to 'vgasrc/clext.c')
-rw-r--r--vgasrc/clext.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vgasrc/clext.c b/vgasrc/clext.c
index 13e3c2bd..36ccad35 100644
--- a/vgasrc/clext.c
+++ b/vgasrc/clext.c
@@ -315,7 +315,7 @@ cirrus_switch_mode_setregs(u16 *data, u16 port)
}
static u16
-cirrus_get_crtc()
+cirrus_get_crtc(void)
{
if (inb(VGAREG_READ_MISC_OUTPUT) & 1)
return VGAREG_VGA_CRTC_ADDRESS;
@@ -364,14 +364,14 @@ cirrus_set_video_mode(u8 mode)
}
static int
-cirrus_check()
+cirrus_check(void)
{
outw(0x9206, VGAREG_SEQU_ADDRESS);
return inb(VGAREG_SEQU_DATA) == 0x12;
}
void
-cirrus_init()
+cirrus_init(void)
{
dprintf(1, "cirrus init\n");
if (! cirrus_check())