-/*++\r
- This file contains an 'Intel UEFI Application' and is\r
- licensed for Intel CPUs and chipsets under the terms of your\r
- license agreement with Intel or your vendor. This file may\r
- be modified by the user, subject to additional terms of the\r
- license agreement\r
---*/\r
-/*++\r
-\r
-Copyright (c) 2011 Intel Corporation. All rights reserved\r
-This software and associated documentation (if any) is furnished\r
-under a license and may only be used or copied in accordance\r
-with the terms of the license. Except as permitted by such\r
-license, no part of this software or documentation may be\r
-reproduced, stored in a retrieval system, or transmitted in any\r
-form or by any means without the express written consent of\r
-Intel Corporation.\r
-\r
---*/\r
-\r
-/** @file\r
+/**\r
+ @file\r
HTTP processing for the web server.\r
\r
+ Copyright (c) 2011-2012, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution. The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
**/\r
\r
#include <WebServer.h>\r
\r
+\r
/**\r
Get a UTF-8 character from the buffer\r
\r
Status = HttpSendHexBits ( SocketFD,\r
pPort,\r
sizeof ( pData ) * 8,\r
- (UINT64)pData );\r
+ (UINT64)(UINTN)pData );\r
if ( EFI_ERROR ( Status )) {\r
break;\r
}\r
CONST UINT64 * pEnd;\r
CONST UINT64 * pDivisor;\r
CONST UINT64 pDivisors[ ] = {\r
- 10000000000000000000L,\r
- 1000000000000000000L,\r
- 100000000000000000L,\r
- 10000000000000000L,\r
- 1000000000000000L,\r
- 100000000000000L,\r
- 10000000000000L,\r
- 1000000000000L,\r
- 100000000000L,\r
- 10000000000L,\r
- 1000000000L,\r
- 100000000L,\r
- 10000000L,\r
- 1000000L,\r
- 100000L,\r
- 10000L,\r
- 1000L,\r
- 100L,\r
- 10L\r
+ 10000000000000000000ULL,\r
+ 1000000000000000000ULL,\r
+ 100000000000000000ULL,\r
+ 10000000000000000ULL,\r
+ 1000000000000000ULL,\r
+ 100000000000000ULL,\r
+ 10000000000000ULL,\r
+ 1000000000000ULL,\r
+ 100000000000ULL,\r
+ 10000000000ULL,\r
+ 1000000000ULL,\r
+ 100000000ULL,\r
+ 10000000ULL,\r
+ 1000000ULL,\r
+ 100000ULL,\r
+ 10000ULL,\r
+ 1000ULL,\r
+ 100ULL,\r
+ 10ULL\r
};\r
EFI_STATUS Status;\r
UINT64 Temp;\r