summaryrefslogtreecommitdiff
path: root/env/callback.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-08-02 09:44:18 -0600
committerTom Rini <trini@konsulko.com>2019-08-11 16:43:41 -0400
commitdd2408cac1ea0f5e9ab4b07539c6edaee57918cb (patch)
tree1f797fce88be656b6bafe0feac4bd183402f80dd /env/callback.c
parent02cf9334280046e6b07ba304e7da2a273e445d5b (diff)
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>
Diffstat (limited to 'env/callback.c')
-rw-r--r--env/callback.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/env/callback.c b/env/callback.c
index 95be80d454..d539da93aa 100644
--- a/env/callback.c
+++ b/env/callback.c
@@ -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;