summaryrefslogtreecommitdiff
path: root/payloads/libpayload/curses/pdcurses-backend
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/curses/pdcurses-backend')
-rw-r--r--payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c1
-rw-r--r--payloads/libpayload/curses/pdcurses-backend/pdcutil.c5
2 files changed, 4 insertions, 2 deletions
diff --git a/payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c b/payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c
index f0e83cf3cf..d016063ff0 100644
--- a/payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c
+++ b/payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c
@@ -1,6 +1,7 @@
/* Public Domain Curses */
/* This file is BSD licensed, Copyright 2011 secunet AG */
+#include <libpayload.h>
#include "lppdc.h"
int PDC_curs_set(int visibility)
diff --git a/payloads/libpayload/curses/pdcurses-backend/pdcutil.c b/payloads/libpayload/curses/pdcurses-backend/pdcutil.c
index 8fb3e161d7..030f4622e2 100644
--- a/payloads/libpayload/curses/pdcurses-backend/pdcutil.c
+++ b/payloads/libpayload/curses/pdcurses-backend/pdcutil.c
@@ -2,6 +2,7 @@
/* This file is BSD licensed, Copyright 2011 secunet AG */
#include "lppdc.h"
+#include <curses.h>
#include <libpayload.h>
int curses_flags = F_ENABLE_SERIAL | F_ENABLE_CONSOLE;
@@ -37,12 +38,12 @@ void curses_enable_vga(int enable)
curses_flags = (curses_flags & ~F_ENABLE_CONSOLE) | (enable * F_ENABLE_CONSOLE);
}
-int curses_serial_enabled()
+int curses_serial_enabled(void)
{
return !!(curses_flags & F_ENABLE_SERIAL);
}
-int curses_vga_enabled()
+int curses_vga_enabled(void)
{
return !!(curses_flags & F_ENABLE_CONSOLE);
}