]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
common/hush: make get_local_var visible for other users
authorHolger Brunck <holger.brunck@keymile.com>
Fri, 8 Apr 2011 02:47:42 +0000 (02:47 +0000)
committerWolfgang Denk <wd@denx.de>
Tue, 10 May 2011 21:19:07 +0000 (23:19 +0200)
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Acked-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
common/hush.c
include/hush.h

index 8021a68446ca6c7017332d03b03132aaecd0fc85..85a603071f15835258341594e26200d6f3d329a1 100644 (file)
@@ -497,7 +497,6 @@ static void remove_bg_job(struct pipe *pi);
 /*     local variable support */
 static char **make_list_in(char **inp, char *name);
 static char *insert_var_value(char *inp);
-static char *get_local_var(const char *var);
 
 #ifndef __U_BOOT__
 /* Table of built-in functions.  They can be forked or not, depending on
@@ -2169,7 +2168,7 @@ static char *get_dollar_var(char ch);
 #endif
 
 /* This is used to get/check local shell variables */
-static char *get_local_var(const char *s)
+char *get_local_var(const char *s)
 {
        struct variables *cur;
 
index 0805ff3d8806109ae38693e213c012cb28838655..5c566cc8da65c50e534623c5458a27b7185c4755 100644 (file)
@@ -34,6 +34,7 @@ extern int parse_file_outer(void);
 
 int set_local_var(const char *s, int flg_export);
 void unset_local_var(const char *name);
+char *get_local_var(const char *s);
 
 #if defined(CONFIG_HUSH_INIT_VAR)
 extern int hush_init_var (void);