diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-08-25 07:29:13 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-08-25 07:29:13 +0000 |
commit | ccd55824e79865a04b1c872bda4af0f1de1f50be (patch) | |
tree | e67acf21c32a61eeaebf1f28d87df97732b80187 /UnixPkg/UnixConsoleDxe/ConsoleIn.c | |
parent | 7f22d35110e43be45a0e16a2e944feebbf51e4ed (diff) | |
download | edk2-platforms-ccd55824e79865a04b1c872bda4af0f1de1f50be.tar.xz |
Integrate patch from Andrew Fish to make it run on OS X.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9194 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UnixPkg/UnixConsoleDxe/ConsoleIn.c')
-rw-r--r-- | UnixPkg/UnixConsoleDxe/ConsoleIn.c | 20 |
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;
|