aboutsummaryrefslogtreecommitdiff
path: root/payloads/libpayload/curses/PDCurses-3.4/pdcurses/slk.c
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2011-10-31 12:54:00 -0700
committerPatrick Georgi <patrick@georgi-clan.de>2011-11-01 19:08:23 +0100
commite11835e2995d130890ca9f45cb3e304f2ea3a6a9 (patch)
treecfc5345e9d98b231de0699714771a5d7f54c6ce1 /payloads/libpayload/curses/PDCurses-3.4/pdcurses/slk.c
parentdd6906328904309e4d93e4bcb04a6cfa3646f29d (diff)
libpayload: remove trailing whitespace and run dos2unix
Change-Id: Iffed3602456f5306711c65f06c873c58d4086e11 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/363 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'payloads/libpayload/curses/PDCurses-3.4/pdcurses/slk.c')
-rw-r--r--payloads/libpayload/curses/PDCurses-3.4/pdcurses/slk.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/payloads/libpayload/curses/PDCurses-3.4/pdcurses/slk.c b/payloads/libpayload/curses/PDCurses-3.4/pdcurses/slk.c
index f97f406e37..1491e2bbf0 100644
--- a/payloads/libpayload/curses/PDCurses-3.4/pdcurses/slk.c
+++ b/payloads/libpayload/curses/PDCurses-3.4/pdcurses/slk.c
@@ -34,17 +34,17 @@ RCSID("$Id: slk.c,v 1.61 2008/07/13 16:08:18 wmcbrine Exp $")
wchar_t *slk_wlabel(int labnum)
Description:
- These functions manipulate a window that contain Soft Label Keys
- (SLK). To use the SLK functions, a call to slk_init() must be
- made BEFORE initscr() or newterm(). slk_init() removes 1 or 2
+ These functions manipulate a window that contain Soft Label Keys
+ (SLK). To use the SLK functions, a call to slk_init() must be
+ made BEFORE initscr() or newterm(). slk_init() removes 1 or 2
lines from the useable screen, depending on the format selected.
- The line(s) removed from the screen are used as a separate
+ The line(s) removed from the screen are used as a separate
window, in which SLKs are displayed.
- slk_init() requires a single parameter which describes the
+ slk_init() requires a single parameter which describes the
format of the SLKs as follows:
-
+
0 3-2-3 format
1 4-4 format
2 4-4-4 format (ncurses extension)
@@ -116,7 +116,7 @@ int slk_init(int fmt)
if (SP)
return ERR;
- switch (fmt)
+ switch (fmt)
{
case 0: /* 3 - 2 - 3 */
labels = LABEL_NORMAL;
@@ -218,7 +218,7 @@ int slk_set(int labnum, const char *label, int justify)
labnum--;
- if (!label || !(*label))
+ if (!label || !(*label))
{
/* Clear the label */
@@ -433,7 +433,7 @@ static void _slk_calc(void)
col += label_length;
if (i == 3)
- col = COLS - (label_length * 4) + 1;
+ col = COLS - (label_length * 4) + 1;
}
break;
@@ -497,7 +497,7 @@ void PDC_slk_initialize(void)
if (!SP->slk_winptr)
{
- if ( !(SP->slk_winptr = newwin(SP->slklines, COLS,
+ if ( !(SP->slk_winptr = newwin(SP->slklines, COLS,
LINES - SP->slklines, 0)) )
return;
@@ -555,7 +555,7 @@ int PDC_mouse_in_slk(int y, int x)
PDC_LOG(("PDC_mouse_in_slk() - called: y->%d x->%d\n", y, x));
- /* If the line on which the mouse was clicked is NOT the last line
+ /* If the line on which the mouse was clicked is NOT the last line
of the screen, we are not interested in it. */
if (!slk || !SP->slk_winptr || (y != SP->slk_winptr->_begy + label_line))
@@ -578,7 +578,7 @@ int slk_wset(int labnum, const wchar_t *label, int justify)
labnum--;
- if (!label || !(*label))
+ if (!label || !(*label))
{
/* Clear the label */