From 3613af913983148a3865e758c2c058912320e4c2 Mon Sep 17 00:00:00 2001 From: Star Zeng Date: Mon, 9 Jan 2017 10:04:45 +0800 Subject: SecurityPkg Tcg2ConfigDxe: Typecast to (CHAR8*) as para of AsciiStrSize Cc: Dandan Bi Cc: Jiewen Yao Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Chao Zhang Reviewed-by: Dandan Bi --- SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c | 4 ++-- SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'SecurityPkg') diff --git a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c index ad7cd54e6c..34828eed7d 100644 --- a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c +++ b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c @@ -90,7 +90,7 @@ InitializeTcg2VersionInfo ( CopyMem ( &PcdTcg2PpiVersion, PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer), - AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer)) + AsciiStrSize ((CHAR8 *) PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer)) ); // @@ -188,7 +188,7 @@ InitializeTcg2VersionInfo ( CopyMem ( &PcdTcg2PpiVersion, PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer), - AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer)) + AsciiStrSize ((CHAR8 *) PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer)) ); if (PcdTcg2PpiVersion != Tcg2Version.PpiVersion) { DEBUG ((DEBUG_WARN, "WARNING: PcdTcgPhysicalPresenceInterfaceVer is not DynamicHii type and maps to TCG2_VERSION.PpiVersion\n")); diff --git a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c index ecd7ab981a..4432daea81 100644 --- a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c +++ b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c @@ -495,7 +495,7 @@ Tcg2VersionInfoCallback ( CopyMem ( &PcdTcg2PpiVersion, PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer), - AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer)) + AsciiStrSize ((CHAR8 *) PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer)) ); if (PcdTcg2PpiVersion != Value->u64) { CreatePopUp ( -- cgit v1.2.3