mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
BaseTools/GenFw: Fix parameter format mismatch in scanf functions
According to MSDN https://msdn.microsoft.com/en-us/library/6ttkkkhh.aspx Format specification '%X' for scanf expects type 'int *', modify the type of the relating variable to 'int' to keep them matched. Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
488ace56a6
commit
bd82cb4f21
@ -3158,7 +3158,7 @@ Returns:
|
|||||||
{
|
{
|
||||||
CHAR8 Line[MAX_LINE_LEN];
|
CHAR8 Line[MAX_LINE_LEN];
|
||||||
CHAR8 *cptr;
|
CHAR8 *cptr;
|
||||||
unsigned ScannedData = 0;
|
int ScannedData = 0;
|
||||||
|
|
||||||
Line[MAX_LINE_LEN - 1] = 0;
|
Line[MAX_LINE_LEN - 1] = 0;
|
||||||
while (1) {
|
while (1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user