summaryrefslogtreecommitdiff
path: root/api/api.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 /api/api.c
parentd7ae932152ddf58125a05f4eb28596d9b31bdb1e (diff)
parentec1fa18561f818bee252da2c331d371ad26037d2 (diff)
Merge branch '2019-08-11-master-imports'
- environment cleanup - HiKey 960 support - Some PCI fixes
Diffstat (limited to 'api/api.c')
-rw-r--r--api/api.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/api/api.c b/api/api.c
index 9f03f1a35bb..bc9454eb4b6 100644
--- a/api/api.c
+++ b/api/api.c
@@ -8,8 +8,9 @@
#include <config.h>
#include <command.h>
#include <common.h>
+#include <env.h>
#include <malloc.h>
-#include <environment.h>
+#include <env_internal.h>
#include <linux/types.h>
#include <api_public.h>
@@ -496,7 +497,7 @@ static int API_env_enum(va_list ap)
{
int i, buflen;
char *last, **next, *s;
- ENTRY *match, search;
+ struct env_entry *match, search;
static char *var;
last = (char *)va_arg(ap, unsigned long);
@@ -513,7 +514,7 @@ static int API_env_enum(va_list ap)
if (s != NULL)
*s = 0;
search.key = var;
- i = hsearch_r(search, FIND, &match, &env_htab, 0);
+ i = hsearch_r(search, ENV_FIND, &match, &env_htab, 0);
if (i == 0) {
i = API_EINVAL;
goto done;