mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
env: Drop the ENTRY typedef
U-Boot is not supposed to use typedef for structs anymore. Also this name is the same as the ENTRY() macro used in assembler files, and 'entry' itself is widely used in U-Boot (>8k matches). Drop the typedef and rename the struct to env_entry to reduce confusion. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
12
test/env/hashtable.c
vendored
12
test/env/hashtable.c
vendored
@@ -18,8 +18,8 @@ static int htab_fill(struct unit_test_state *uts,
|
||||
struct hsearch_data *htab, size_t size)
|
||||
{
|
||||
size_t i;
|
||||
ENTRY item;
|
||||
ENTRY *ritem;
|
||||
struct env_entry item;
|
||||
struct env_entry *ritem;
|
||||
char key[20];
|
||||
|
||||
for (i = 0; i < size; i++) {
|
||||
@@ -38,8 +38,8 @@ static int htab_check_fill(struct unit_test_state *uts,
|
||||
struct hsearch_data *htab, size_t size)
|
||||
{
|
||||
size_t i;
|
||||
ENTRY item;
|
||||
ENTRY *ritem;
|
||||
struct env_entry item;
|
||||
struct env_entry *ritem;
|
||||
char key[20];
|
||||
|
||||
for (i = 0; i < size; i++) {
|
||||
@@ -61,8 +61,8 @@ static int htab_create_delete(struct unit_test_state *uts,
|
||||
struct hsearch_data *htab, size_t iterations)
|
||||
{
|
||||
size_t i;
|
||||
ENTRY item;
|
||||
ENTRY *ritem;
|
||||
struct env_entry item;
|
||||
struct env_entry *ritem;
|
||||
char key[20];
|
||||
|
||||
for (i = 0; i < iterations; i++) {
|
||||
|
||||
Reference in New Issue
Block a user