summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2013-03-25 15:32:25 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-03-26 19:08:30 +0100
commit0fef4fe61ba4a6775fa8ab671212bf0acc9a8adf (patch)
tree251c82cb702cc764adc4e6d0dbefa2ccb6ffbdfc
parentd5c79f9cc897ef74ee7c376553572c67ed532662 (diff)
libpayload: Fix missing prototype warning for Xinitscr()
Xinitscr is only used internally in PDCurses, unless XCURSES is defined. This patch fixes a warning that is produced because of that. Change-Id: I211f75717276cf028e0b435f328d1687d3536eb7 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/2907 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
-rw-r--r--payloads/libpayload/curses/PDCurses-3.4/pdcurses/initscr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/payloads/libpayload/curses/PDCurses-3.4/pdcurses/initscr.c b/payloads/libpayload/curses/PDCurses-3.4/pdcurses/initscr.c
index 2fb2600455..165b7f941b 100644
--- a/payloads/libpayload/curses/PDCurses-3.4/pdcurses/initscr.c
+++ b/payloads/libpayload/curses/PDCurses-3.4/pdcurses/initscr.c
@@ -108,6 +108,9 @@ MOUSE_STATUS Mouse_status, pdc_mouse_status;
extern RIPPEDOFFLINE linesripped[5];
extern char linesrippedoff;
+#ifndef XCURSES
+static
+#endif
WINDOW *Xinitscr(int argc, char *argv[])
{
int i;