mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02: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:
6
env/callback.c
vendored
6
env/callback.c
vendored
@@ -43,7 +43,7 @@ static const char *callback_list;
|
||||
* This is called specifically when the variable did not exist in the hash
|
||||
* previously, so the blanket update did not find this variable.
|
||||
*/
|
||||
void env_callback_init(ENTRY *var_entry)
|
||||
void env_callback_init(struct env_entry *var_entry)
|
||||
{
|
||||
const char *var_name = var_entry->key;
|
||||
char callback_name[256] = "";
|
||||
@@ -80,7 +80,7 @@ void env_callback_init(ENTRY *var_entry)
|
||||
* Called on each existing env var prior to the blanket update since removing
|
||||
* a callback association should remove its callback.
|
||||
*/
|
||||
static int clear_callback(ENTRY *entry)
|
||||
static int clear_callback(struct env_entry *entry)
|
||||
{
|
||||
entry->callback = NULL;
|
||||
|
||||
@@ -92,7 +92,7 @@ static int clear_callback(ENTRY *entry)
|
||||
*/
|
||||
static int set_callback(const char *name, const char *value, void *priv)
|
||||
{
|
||||
ENTRY e, *ep;
|
||||
struct env_entry e, *ep;
|
||||
struct env_clbk_tbl *clbkp;
|
||||
|
||||
e.key = name;
|
||||
|
Reference in New Issue
Block a user