]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/LibC/Uefi/Devices/Console/daConsole.c
StdLib/AppPkg: Add the NOOPT build target and fix a type conversion problem with...
[mirror_edk2.git] / StdLib / LibC / Uefi / Devices / Console / daConsole.c
index 1f40177d474db3f730d220851320c7ebfef2d6a7..d926a0c56e5e205b7efe80782d89fcaa3a672a4a 100644 (file)
@@ -361,7 +361,7 @@ da_ConRead(
   else {\r
     Stream = BASE_CR(filp->f_ops, ConInstance, Abstraction);\r
     Proto = (EFI_SIMPLE_TEXT_INPUT_PROTOCOL *)Stream->Dev;\r
-    BlockingMode = ((filp->Oflags & O_NONBLOCK) == 0);\r
+    BlockingMode = (BOOLEAN)((filp->Oflags & O_NONBLOCK) == 0);\r
 \r
     do {\r
       Status = EFI_SUCCESS;\r
@@ -586,7 +586,6 @@ da_ConPoll(
   short              events\r
   )\r
 {\r
-  EFI_SIMPLE_TEXT_INPUT_PROTOCOL   *Proto;\r
   ConInstance                      *Stream;\r
   EFI_STATUS                        Status = RETURN_SUCCESS;\r
   short                             RdyMask = 0;\r
@@ -600,7 +599,6 @@ da_ConPoll(
   }\r
   if(Stream->InstanceNum == 0) {\r
     // STDIN: Only input is supported for this device\r
-    Proto = (EFI_SIMPLE_TEXT_INPUT_PROTOCOL *)Stream->Dev;\r
     Status = da_ConRawRead (filp, &Stream->UnGetKey);\r
     if(Status == RETURN_SUCCESS) {\r
       RdyMask = POLLIN;\r