diff options
author | Shenglei Zhang <shenglei.zhang@intel.com> | 2019-01-30 16:34:36 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2019-01-31 20:19:18 +0800 |
commit | 62cdd1f5ab2bbad5f4615077ab8cead2e3892f3f (patch) | |
tree | da9365c31064fb342cfd0742a67706690dfb0590 /MdeModulePkg/Library/DxeHttpLib | |
parent | 357fc11c35b71f232cfb6317534a02fba1baa770 (diff) | |
download | edk2-62cdd1f5ab2bbad5f4615077ab8cead2e3892f3f.tar.gz edk2-62cdd1f5ab2bbad5f4615077ab8cead2e3892f3f.tar.bz2 edk2-62cdd1f5ab2bbad5f4615077ab8cead2e3892f3f.zip |
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 <jian.j.wang@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Diffstat (limited to 'MdeModulePkg/Library/DxeHttpLib')
-rw-r--r-- | MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c | 25 |
1 files 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.<BR>
+Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -899,27 +899,6 @@ typedef struct { } 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.
@param[in] Char Ascii character.
@@ -936,7 +915,7 @@ HttpIoHexCharToUintn ( return Char - '0';
}
- return (10 + HttpIoCharToUpper (Char) - 'A');
+ return (10 + AsciiCharToUpper (Char) - 'A');
}
/**
|