summaryrefslogtreecommitdiff
path: root/api/api.c
diff options
context:
space:
mode:
Diffstat (limited to 'api/api.c')
-rw-r--r--api/api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/api.c b/api/api.c
index c1b2b60..1ee7c68 100644
--- a/api/api.c
+++ b/api/api.c
@@ -40,6 +40,7 @@
/* 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);
/*****************************************************************************
@@ -582,7 +583,7 @@ int syscall(int call, int *retval, ...)
va_list ap;
int rv;
- if (call < 0 || call >= calls_no || calls_table[call] == NULL) {
+ if (call < 0 || call >= calls_no) {
debugf("invalid call #%d\n", call);
return 0;
}