diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2022-12-20 20:01:02 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-12-21 12:55:46 +0100 |
commit | 448889a4f0c32ba8ea61f870d4edcb0e0d58af85 (patch) | |
tree | cad56c7263667bb09096cc05c707130d3809544a /i386/i386at/ioapic.c | |
parent | 28ac48ba2371ad6f76f263e56dcf0090fe0d6087 (diff) | |
download | gnumach-448889a4f0c32ba8ea61f870d4edcb0e0d58af85.tar.gz gnumach-448889a4f0c32ba8ea61f870d4edcb0e0d58af85.tar.bz2 gnumach-448889a4f0c32ba8ea61f870d4edcb0e0d58af85.zip |
Use -Wstrict-prototypes and fix warnings
Most of the changes include defining and using proper function type
declarations (with argument types declared) and avoiding using the
K&R style of function declarations.
Message-Id: <Y6Jazsuis1QA0lXI@mars>
Diffstat (limited to 'i386/i386at/ioapic.c')
-rw-r--r-- | i386/i386at/ioapic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/i386/i386at/ioapic.c b/i386/i386at/ioapic.c index e5523488..3373aa71 100644 --- a/i386/i386at/ioapic.c +++ b/i386/i386at/ioapic.c @@ -43,7 +43,7 @@ spl_t curr_ipl; int iunit[NINTR] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}; -void (*ivect[NINTR])() = { +interrupt_handler_fn ivect[NINTR] = { /* 00 */ intnull, /* install timer later */ /* 01 */ kdintr, /* kdintr, ... */ /* 02 */ intnull, @@ -402,8 +402,8 @@ ioapic_configure(void) /* Install clock interrupt handler on both remapped timer pin and pin 0 * since nobody knows how all x86 timers are wired up */ - ivect[0] = hardclock; - ivect[timer_pin] = hardclock; + ivect[0] = (interrupt_handler_fn)hardclock; + ivect[timer_pin] = (interrupt_handler_fn)hardclock; printf("IOAPIC 0 configured\n"); } |