diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2012-12-11 22:16:31 -0600 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-12-13 11:46:56 -0700 |
commit | 2598090b7e17f8bdca95b22e7f27217054730e02 (patch) | |
tree | 08c613d02581cdf4238736511cc10d5f3c782990 /common/env_common.c | |
parent | e080d545f8ffb104a13b07deddf92ecb498b3a94 (diff) | |
download | u-boot-imx-2598090b7e17f8bdca95b22e7f27217054730e02.zip u-boot-imx-2598090b7e17f8bdca95b22e7f27217054730e02.tar.gz u-boot-imx-2598090b7e17f8bdca95b22e7f27217054730e02.tar.bz2 |
env: Add environment variable flags
Currently just validates variable types as decimal, hexidecimal,
boolean, ip address, and mac address.
If the entry is not found in the env ".flags", then look in the static
one. This allows the env to override the static definitions, but prevents
the need to have every definition in the environment distracting you.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'common/env_common.c')
-rw-r--r-- | common/env_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/env_common.c b/common/env_common.c index 067fe3f..bb18070 100644 --- a/common/env_common.c +++ b/common/env_common.c @@ -40,7 +40,7 @@ DECLARE_GLOBAL_DATA_PTR; #include <env_default.h> struct hsearch_data env_htab = { - .change_ok = env_change_ok, + .change_ok = env_flags_validate, }; static uchar __env_get_char_spec(int index) |