[U-Boot] [PATCH v2 2/3] env: check and apply changes on delete/destroy
Simon Glass
sjg at chromium.org
Wed Dec 7 23:02:23 CET 2011
Hi Gerlando,
On Wed, Dec 7, 2011 at 5:30 AM, Gerlando Falauto
<gerlando.falauto at keymile.com> wrote:
> Signed-off-by: Gerlando Falauto <gerlando.falauto at keymile.com>
Tested-by: Simon Glass <sjg at chromium.org>
> ---
> common/cmd_nvedit.c | 2 +-
> include/search.h | 6 ++++--
> lib/hashtable.c | 18 ++++++++++++------
> 3 files changed, 17 insertions(+), 9 deletions(-)
>
> diff --git a/include/search.h b/include/search.h
> index 2a59e03..7ad4261 100644
> --- a/include/search.h
> +++ b/include/search.h
> @@ -142,7 +142,8 @@ int hcreate_r(size_t nel, struct hsearch_data *htab)
> * be freed and the local static variable can be marked as not used.
> */
>
> -void hdestroy_r(struct hsearch_data *htab)
> +void hdestroy_r(struct hsearch_data *htab,
> + int(*apply)(const char *, const char *, const char *, int))\
You could just use 'apply_cb apply' for that param I think.
> {
> int i;
>
Regards,
Simon
More information about the U-Boot
mailing list