]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/C/Common: Fix parameter format mismatch in scanf functions
authorHao Wu <hao.a.wu@intel.com>
Thu, 22 Sep 2016 01:57:20 +0000 (09:57 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 8 Nov 2016 08:36:51 +0000 (16:36 +0800)
commit851c97ce78393d5875eec984fbd870e8e85e5fd8
tree7bbff10ffd7ab532f1eea9835890dc1a46f64139
parented9ff2688a6329b0eed8bc14d287e7a644975a6c
BaseTools/C/Common: 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/Common/ParseInf.c
BaseTools/Source/C/Common/SimpleFileParsing.c