diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2015-05-20 14:27:19 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-05-21 09:13:19 -0400 |
commit | cca98fd6aa111f622be09ffdb5c59684c5e160af (patch) | |
tree | b6390d453a085825c1d260dbe69a2433d6f86b77 /common/env_flags.c | |
parent | 032ea185d644cfe420822dd3dc84734623ffac91 (diff) | |
download | u-boot-cca98fd6aa111f622be09ffdb5c59684c5e160af.tar.gz |
env: Allow env_attr_walk to pass a priv * to callback
In some cases it can be helpful to have context in the callback about
the calling situation. This is needed for following patches.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/env_flags.c')
-rw-r--r-- | common/env_flags.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/env_flags.c b/common/env_flags.c index 985f92e50e..5189f5b2dd 100644 --- a/common/env_flags.c +++ b/common/env_flags.c @@ -435,7 +435,7 @@ static int clear_flags(ENTRY *entry) /* * Call for each element in the list that defines flags for a variable */ -static int set_flags(const char *name, const char *value) +static int set_flags(const char *name, const char *value, void *priv) { ENTRY e, *ep; @@ -463,9 +463,9 @@ static int on_flags(const char *name, const char *value, enum env_op op, hwalk_r(&env_htab, clear_flags); /* configure any static flags */ - env_attr_walk(ENV_FLAGS_LIST_STATIC, set_flags); + env_attr_walk(ENV_FLAGS_LIST_STATIC, set_flags, NULL); /* configure any dynamic flags */ - env_attr_walk(value, set_flags); + env_attr_walk(value, set_flags, NULL); return 0; } |