From 62cdd1f5ab2bbad5f4615077ab8cead2e3892f3f Mon Sep 17 00:00:00 2001 From: Shenglei Zhang Date: Wed, 30 Jan 2019 16:34:36 +0800 Subject: [PATCH] MdeModulePkg/DxeHttpLib: Use BaseLib api AsciiCharToUpper Substitute HttpIoCharToUpper with AsciiCharToUpper which is a public function with the same effect. And remove the implement of HttpIoCharToUpper. https://bugzilla.tianocore.org/show_bug.cgi?id=1369 Cc: Jian J Wang Cc: Hao Wu Cc: Ruiyu Ni Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Shenglei Zhang Reviewed-by: Hao Wu Reviewed-by: Ray Ni --- MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c | 25 ++------------------ 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c b/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c index 2fc3da8a2d..22494b135e 100644 --- a/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c +++ b/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c @@ -2,7 +2,7 @@ This library is used to share code between UEFI network stack modules. It provides the helper routines to parse the HTTP message byte stream. -Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
+Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -898,27 +898,6 @@ typedef struct { UINTN CurrentChunkParsedSize; } HTTP_BODY_PARSER; -/** - - Convert an Ascii char to its uppercase. - - @param[in] Char Ascii character. - - @return Uppercase value of the input Char. - -**/ -CHAR8 -HttpIoCharToUpper ( - IN CHAR8 Char - ) -{ - if (Char >= 'a' && Char <= 'z') { - return Char - ('a' - 'A'); - } - - return Char; -} - /** Convert an hexadecimal char to a value of type UINTN. @@ -936,7 +915,7 @@ HttpIoHexCharToUintn ( return Char - '0'; } - return (10 + HttpIoCharToUpper (Char) - 'A'); + return (10 + AsciiCharToUpper (Char) - 'A'); } /**