projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename CFG_ENV macros to CONFIG_ENV
[platform/kernel/u-boot.git]
/
api
/
api.c
diff --git
a/api/api.c
b/api/api.c
index
1ee7c68
..
f51ebb7
100644
(file)
--- a/
api/api.c
+++ b/
api/api.c
@@
-30,6
+30,7
@@
#include <command.h>
#include <common.h>
#include <malloc.h>
#include <command.h>
#include <common.h>
#include <malloc.h>
+#include <environment.h>
#include <linux/types.h>
#include <api_public.h>
#include <linux/types.h>
#include <api_public.h>
@@
-40,8
+41,6
@@
/* U-Boot routines needed */
extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
/* U-Boot routines needed */
extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
-extern uchar (*env_get_char)(int);
-extern uchar *env_get_addr(int);
/*****************************************************************************
*
/*****************************************************************************
*
@@
-535,7
+534,7
@@
static int API_env_enum(va_list ap)
for (i = 0; env_get_char(i) != '\0'; i = n + 1) {
for (n = i; env_get_char(n) != '\0'; ++n) {
for (i = 0; env_get_char(i) != '\0'; i = n + 1) {
for (n = i; env_get_char(n) != '\0'; ++n) {
- if (n >= C
F
G_ENV_SIZE) {
+ if (n >= C
ONFI
G_ENV_SIZE) {
/* XXX shouldn't we set *next = NULL?? */
return 0;
}
/* XXX shouldn't we set *next = NULL?? */
return 0;
}