diff options
| author | Gerlando Falauto <gerlando.falauto@keymile.com> | 2012-08-24 00:11:38 +0000 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2012-09-18 12:01:52 -0700 | 
| commit | 348b1f1c6064990210a6797c86514fd358b73062 (patch) | |
| tree | 05d75464ef3a543a3c84a2fc7b2e2c3a61c029b3 /common/env_common.c | |
| parent | c3f6525854bbc664ce9fbed9754af1daf56ba08e (diff) | |
| download | olio-uboot-2014.01-348b1f1c6064990210a6797c86514fd358b73062.tar.xz olio-uboot-2014.01-348b1f1c6064990210a6797c86514fd358b73062.zip | |
env: make himport_r() selective on variables
Add 2 new arguments to himport_r():
 o "nvars", "vars": number and list of variables to take into account
   (0 means ALL)
NOTE: This patch does not change the current behaviour.
Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'common/env_common.c')
| -rw-r--r-- | common/env_common.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/common/env_common.c b/common/env_common.c index 911a6afd1..c5cefd8a5 100644 --- a/common/env_common.c +++ b/common/env_common.c @@ -196,7 +196,8 @@ void set_default_env(const char *s)  	}  	if (himport_r(&env_htab, (char *)default_environment, -			sizeof(default_environment), '\0', 0) == 0) +			sizeof(default_environment), '\0', 0, +			0, NULL) == 0)  		error("Environment import failed: errno = %d\n", errno);  	gd->flags |= GD_FLG_ENV_READY; @@ -221,7 +222,8 @@ int env_import(const char *buf, int check)  		}  	} -	if (himport_r(&env_htab, (char *)ep->data, ENV_SIZE, '\0', 0)) { +	if (himport_r(&env_htab, (char *)ep->data, ENV_SIZE, '\0', 0, +			0, NULL)) {  		gd->flags |= GD_FLG_ENV_READY;  		return 1;  	} |