summaryrefslogtreecommitdiff
path: root/UnixPkg/UnixConsoleDxe/ConsoleIn.c
diff options
context:
space:
mode:
Diffstat (limited to 'UnixPkg/UnixConsoleDxe/ConsoleIn.c')
-rw-r--r--UnixPkg/UnixConsoleDxe/ConsoleIn.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/UnixPkg/UnixConsoleDxe/ConsoleIn.c b/UnixPkg/UnixConsoleDxe/ConsoleIn.c
index 821ff2c805..6ab68956e9 100644
--- a/UnixPkg/UnixConsoleDxe/ConsoleIn.c
+++ b/UnixPkg/UnixConsoleDxe/ConsoleIn.c
@@ -27,7 +27,7 @@ Abstract:
--*/
#include "Console.h"
-#include <sys/poll.h>
+#include <sys/poll.h>
//
// Private worker functions
@@ -68,7 +68,7 @@ Returns:
EFI_STATUS
UnixConvertInputRecordToEfiKey (
- IN char c,
+ IN char c,
OUT EFI_INPUT_KEY *Key
)
/*++
@@ -92,8 +92,8 @@ Returns:
--*/
{
Key->ScanCode = 0;
- if (c == '\n')
- c = '\r';
+ if (c == '\n')
+ c = '\r';
Key->UnicodeChar = c;
return EFI_SUCCESS;
}
@@ -124,7 +124,7 @@ Returns:
{
EFI_STATUS Status;
UNIX_SIMPLE_TEXT_PRIVATE_DATA *Private;
- char c;
+ char c;
Private = UNIX_SIMPLE_TEXT_IN_PRIVATE_DATA_FROM_THIS (This);
@@ -133,7 +133,7 @@ Returns:
return Status;
}
- if (Private->UnixThunk->Read (0, &c, 1) != 1)
+ if (Private->UnixThunk->Read (0, &c, 1) != 1)
return EFI_NOT_READY;
Status = UnixConvertInputRecordToEfiKey (c, Key);
@@ -193,11 +193,11 @@ Returns:
--*/
{
- struct pollfd pfd;
+ struct pollfd pfd;
- pfd.fd = 0;
- pfd.events = POLLIN;
- if (Private->UnixThunk->Poll (&pfd, 1, 0) <= 0) {
+ pfd.fd = 0;
+ pfd.events = POLLIN;
+ if (Private->UnixThunk->Poll (&pfd, 1, 0) <= 0) {
return EFI_NOT_READY;
}
return EFI_SUCCESS;