summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2016-10-11 11:04:13 +0800
committerHao Wu <hao.a.wu@intel.com>2016-11-08 16:36:58 +0800
commitf45b5a760530752bd6ea8125416cb6620a375468 (patch)
treea7dcacf5d7521d86fef112984d19b5d065b6c4a5 /BaseTools
parentbd82cb4f21985b4d703091d750d5d7e5e9e04ea7 (diff)
downloadedk2-f45b5a760530752bd6ea8125416cb6620a375468.tar.gz
edk2-f45b5a760530752bd6ea8125416cb6620a375468.tar.bz2
edk2-f45b5a760530752bd6ea8125416cb6620a375468.zip
BaseTools/GenVtf: 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>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/C/GenVtf/GenVtf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/C/GenVtf/GenVtf.c b/BaseTools/Source/C/GenVtf/GenVtf.c
index b68d86a97e..006822a79b 100644
--- a/BaseTools/Source/C/GenVtf/GenVtf.c
+++ b/BaseTools/Source/C/GenVtf/GenVtf.c
@@ -112,8 +112,8 @@ Returns:
--*/
{
CHAR8 TemStr[5] = "0000";
- unsigned Major;
- unsigned Minor;
+ int Major;
+ int Minor;
UINTN Length;
Major = 0;