[U-Boot] [PATCH] env: allow to export only selected variables

Gerlando Falauto gerlando.falauto at keymile.com
Thu Nov 17 20:06:55 CET 2011


Dear Wolfgang Denk,

> --- a/include/search.h
> +++ b/include/search.h
> @@ -91,7 +91,8 @@ extern int hstrstr_r(const char *__match, int __last_idx, ENTRY ** __retval,
>   extern int hdelete_r(const char *__key, struct hsearch_data *__htab);
>
>   extern ssize_t hexport_r(struct hsearch_data *__htab,
> -		     const char __sep, char **__resp, size_t __size);
> +		     const char __sep, char **__resp, size_t __size,
> +		     int argc, char * const argv[]);
>
>   extern int himport_r(struct hsearch_data *__htab,
>   		     const char *__env, size_t __size, const char __sep,
> diff --git a/lib/hashtable.c b/lib/hashtable.c
> index 6895550..b7ba341 100644
> --- a/lib/hashtable.c
> +++ b/lib/hashtable.c
> @@ -478,7 +478,8 @@ static int cmpkey(const void *p1, const void *p2)
>   }
>
>   ssize_t hexport_r(struct hsearch_data *htab, const char sep,
> -		 char **resp, size_t size)
> +		 char **resp, size_t size,
> +		 int argc, char * const argv[])
>   {
>   	ENTRY *list[htab->size];
>   	char *res, *p;

What happened to "please indent with TABs only"?
Have I missed something, perhaps?

Thank you,
Gerlando Falauto


More information about the U-Boot mailing list