summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/C/GenFw/GenFw.c
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2016-10-11 11:03:48 +0800
committerHao Wu <hao.a.wu@intel.com>2016-11-08 16:36:56 +0800
commitbd82cb4f21985b4d703091d750d5d7e5e9e04ea7 (patch)
tree160618da81cd0cec84b9b515e8603667cd702b1c /BaseTools/Source/C/GenFw/GenFw.c
parent488ace56a6b135f79b56e3905d5c989638a0ec90 (diff)
downloadedk2-bd82cb4f21985b4d703091d750d5d7e5e9e04ea7.tar.gz
edk2-bd82cb4f21985b4d703091d750d5d7e5e9e04ea7.tar.bz2
edk2-bd82cb4f21985b4d703091d750d5d7e5e9e04ea7.zip
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>
Diffstat (limited to 'BaseTools/Source/C/GenFw/GenFw.c')
-rw-r--r--BaseTools/Source/C/GenFw/GenFw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/C/GenFw/GenFw.c b/BaseTools/Source/C/GenFw/GenFw.c
index 9ffc4c5b01..22e4e7283c 100644
--- a/BaseTools/Source/C/GenFw/GenFw.c
+++ b/BaseTools/Source/C/GenFw/GenFw.c
@@ -3158,7 +3158,7 @@ Returns:
{
CHAR8 Line[MAX_LINE_LEN];
CHAR8 *cptr;
- unsigned ScannedData = 0;
+ int ScannedData = 0;
Line[MAX_LINE_LEN - 1] = 0;
while (1) {