]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/C/GenFw/GenFw.c
BaseTools/GenFw: Fix parameter format mismatch in scanf functions
authorHao Wu <hao.a.wu@intel.com>
Tue, 11 Oct 2016 03:03:48 +0000 (11:03 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 8 Nov 2016 08:36:56 +0000 (16:36 +0800)
commitbd82cb4f21985b4d703091d750d5d7e5e9e04ea7
tree160618da81cd0cec84b9b515e8603667cd702b1c
parent488ace56a6b135f79b56e3905d5c989638a0ec90
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>
BaseTools/Source/C/GenFw/GenFw.c