aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJason Hobbs <jason.hobbs@calxeda.com>2011-06-29 11:25:17 -0500
committerJohn Rigby <john.rigby@linaro.org>2011-06-30 12:23:34 +0100
commit6e9b76f9d0dcdca63d8a2c4d91015ef09b0ce166 (patch)
tree6e0b3d91f181caa61d978afb483b73a071fc19b7 /include
parent9cfbc22c26ca6fae4c36e51299d7ca04fca68568 (diff)
common: add run_command2 for running simple or hush commands
Signed-off-by: Jason Hobbs <jason.hobbs@calxeda.com>
Diffstat (limited to 'include')
-rw-r--r--include/common.h1
-rw-r--r--include/hush.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index 394a005b0..bd2c1a080 100644
--- a/include/common.h
+++ b/include/common.h
@@ -228,6 +228,7 @@ int print_buffer (ulong addr, void* data, uint width, uint count, uint linelen);
/* common/main.c */
void main_loop (void);
int run_command (const char *cmd, int flag);
+int run_command2 (const char *cmd, int flag);
int readline (const char *const prompt);
int readline_into_buffer (const char *const prompt, char * buffer);
int parse_line (char *, char *[]);
diff --git a/include/hush.h b/include/hush.h
index 5c566cc8d..ecf9222d2 100644
--- a/include/hush.h
+++ b/include/hush.h
@@ -29,7 +29,7 @@
#define FLAG_REPARSING (1 << 2) /* >=2nd pass */
extern int u_boot_hush_start(void);
-extern int parse_string_outer(char *, int);
+extern int parse_string_outer(const char *, int);
extern int parse_file_outer(void);
int set_local_var(const char *s, int flg_export);