lib/memrange: avoid shadow object declarations

Fix an error where a variable named 'free' was shadowing the
function 'free'.

src/lib/memrange.c:293:73: error: declaration of 'free' shadows a global
declaration [-Werror=shadow]

Change-Id: Ie57194b392f8f00ed4fd5c76dab27299b00ae293
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/13788
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Aaron Durbin 2016-02-24 18:49:25 -06:00
parent e0b3c7bef1
commit a7141c518a
1 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ void memranges_add_resources(struct memranges *ranges,
memranges_add_resources_filter(ranges, mask, match, tag, NULL); memranges_add_resources_filter(ranges, mask, match, tag, NULL);
} }
void memranges_init_empty(struct memranges *ranges, struct range_entry *free, void memranges_init_empty(struct memranges *ranges, struct range_entry *to_free,
size_t num_free) size_t num_free)
{ {
size_t i; size_t i;
@ -299,7 +299,7 @@ void memranges_init_empty(struct memranges *ranges, struct range_entry *free,
ranges->free_list = NULL; ranges->free_list = NULL;
for (i = 0; i < num_free; i++) for (i = 0; i < num_free; i++)
range_entry_link(&ranges->free_list, &free[i]); range_entry_link(&ranges->free_list, &to_free[i]);
} }
void memranges_init(struct memranges *ranges, void memranges_init(struct memranges *ranges,