summaryrefslogtreecommitdiff
path: root/env/callback.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-08-12 18:46:07 -0400
committerTom Rini <trini@konsulko.com>2019-08-12 18:46:07 -0400
commit5939afc9611e8ba4a86b96e67670b765ee27668e (patch)
tree369402e0305a7b8f9f905baec6387bfd9683ba71 /env/callback.c
parentd7ae932152ddf58125a05f4eb28596d9b31bdb1e (diff)
parentec1fa18561f818bee252da2c331d371ad26037d2 (diff)
Merge branch '2019-08-11-master-imports'
- environment cleanup - HiKey 960 support - Some PCI fixes
Diffstat (limited to 'env/callback.c')
-rw-r--r--env/callback.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/env/callback.c b/env/callback.c
index 54d2de4a962..f0904cfdc53 100644
--- a/env/callback.c
+++ b/env/callback.c
@@ -5,7 +5,8 @@
*/
#include <common.h>
-#include <environment.h>
+#include <env.h>
+#include <env_internal.h>
#if defined(CONFIG_NEEDS_MANUAL_RELOC)
DECLARE_GLOBAL_DATA_PTR;
@@ -42,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] = "";
@@ -79,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;
@@ -91,13 +92,13 @@ 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;
e.data = NULL;
e.callback = NULL;
- hsearch_r(e, FIND, &ep, &env_htab, 0);
+ hsearch_r(e, ENV_FIND, &ep, &env_htab, 0);
/* does the env variable actually exist? */
if (ep != NULL) {