Merge branch 'master' of git://git.denx.de/u-boot-usb
[oweals/u-boot.git] / env / callback.c
index d539da93aaaaca98a9c9760a8a588e047c20a82b..f0904cfdc5352249376d2fcc0a0eb2c83bb5b633 100644 (file)
@@ -6,7 +6,7 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 
 #if defined(CONFIG_NEEDS_MANUAL_RELOC)
 DECLARE_GLOBAL_DATA_PTR;
@@ -98,7 +98,7 @@ static int set_callback(const char *name, const char *value, void *priv)
        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) {