ifwitool: Fix gcc error due to shadowed global declaration
commit310580ea134dc7c24cf423aab7419698280e4b4e
authorWerner Zeh <werner.zeh@siemens.com>
Fri, 24 Jun 2016 11:03:38 +0000 (24 13:03 +0200)
committerWerner Zeh <werner.zeh@siemens.com>
Sun, 26 Jun 2016 08:49:06 +0000 (26 10:49 +0200)
tree7d6b934a0e366e99f81c7da09c04f9d360e42295
parent627c27bb921127d8b384840d89f9f1d7ab1c68a3
ifwitool: Fix gcc error due to shadowed global declaration

The name 'bpdt_size' is used for a function as well as ia local variable.
As ifwitool is compiled using HOSTCC, there can be an older gcc version
used for the compilation. With gcc version 4.4.7 I get the following
error: declaration of 'bpdt_size' shadows a global declaration
To fix it, rename the function to get_bpdt_size so that names are
unique now.

Change-Id: I47791c705ac4ab28307c52b86940a7a14a5cfef8
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/15343
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Furquan Shaikh <furquan@google.com>
util/cbfstool/ifwitool.c