Skip to content

Commit

Permalink
Fix build (#105)
Browse files Browse the repository at this point in the history
Fix build errors:

* Fix missing `void` in `pic8259_init()` prototype which causes build to
fail.
* Remove leftover declaration for `errno`.
  • Loading branch information
phaubertin authored Jan 7, 2025
1 parent 047d463 commit 04864ac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/kernel/infrastructure/i686/drivers/pic8259.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <kernel/infrastructure/i686/drivers/asm/pic8259.h>
#include <stdbool.h>

void pic8259_init();
void pic8259_init(void);

void pic8259_mask(int irq);

Expand Down
2 changes: 1 addition & 1 deletion kernel/infrastructure/i686/drivers/pic8259.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ static uint8_t read_isr(pic8259_t *pic8259) {
return inb(pic8259->io_base + 0);
}

void pic8259_init() {
void pic8259_init(void) {
initialize(&main_pic8259);
initialize(&proxied_pic8259);
}
Expand Down
1 change: 0 additions & 1 deletion userspace/testapp/tests/ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ static void ipc_test_run_client(void) {
char reply2[5];
char reply1[6];
char reply3[40];
int errno;

const char hello[] = "Hello ";
const char world[] = "World!";
Expand Down

0 comments on commit 04864ac

Please sign in to comment.