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>
This commit is contained in:
Stefan Reinauer
2011-10-31 12:54:00 -07:00
committed by Patrick Georgi
parent dd69063289
commit e11835e299
139 changed files with 1259 additions and 1259 deletions

View File

@@ -18,7 +18,7 @@ RCSID("$Id: pdckbd.c,v 1.89 2008/07/14 04:24:51 wmcbrine Exp $")
unsigned long PDC_get_input_fd(void);
Description:
PDC_get_input_fd() returns the file descriptor that PDCurses
PDC_get_input_fd() returns the file descriptor that PDCurses
reads its input from. It can be used for select().
Portability X/Open BSD SYS V
@@ -147,12 +147,12 @@ bool PDC_check_key(void)
#ifdef EMXVIDEO
if (tahead == -1) /* Nothing typed yet */
{
{
tahead = _read_kbd(0, 0, 0);
/* Read additional */
if (tahead == 0)
if (tahead == 0)
tahead = _read_kbd(0, 1, 0) << 8;
}
@@ -189,7 +189,7 @@ bool PDC_check_key(void)
return kbhit();
# endif
#endif
}
}
#ifndef EMXVIDEO
@@ -212,8 +212,8 @@ static int _process_mouse_events(void)
((event.fs & move_mask[i]) ? BUTTON_MOVED : 0) |
((event.fs & press_mask[i]) ? BUTTON_PRESSED : 0);
/* PRESS events are sometimes mistakenly reported as MOVE
events. A MOVE should always follow a PRESS, so treat a MOVE
/* PRESS events are sometimes mistakenly reported as MOVE
events. A MOVE should always follow a PRESS, so treat a MOVE
immediately after a RELEASE as a PRESS. */
if ((pdc_mouse_status.button[i] == BUTTON_MOVED) &&
@@ -224,7 +224,7 @@ static int _process_mouse_events(void)
if (pdc_mouse_status.button[i] == BUTTON_PRESSED && SP->mouse_wait)
{
/* Check for a click -- a PRESS followed immediately by a
/* Check for a click -- a PRESS followed immediately by a
release */
if (!mouse_events)
@@ -499,10 +499,10 @@ int PDC_mouse_set(void)
USHORT mask = ((mbe & (BUTTON1_PRESSED | BUTTON1_CLICKED |
BUTTON1_MOVED)) ? 6 : 0) |
((mbe & (BUTTON3_PRESSED | BUTTON3_CLICKED |
((mbe & (BUTTON3_PRESSED | BUTTON3_CLICKED |
BUTTON3_MOVED)) ? 24 : 0) |
((mbe & (BUTTON2_PRESSED | BUTTON2_CLICKED |
((mbe & (BUTTON2_PRESSED | BUTTON2_CLICKED |
BUTTON2_MOVED)) ? 96 : 0);
MouSetEventMask(&mask, mouse_handle);