[U-Boot] [PATCH v2 2/3] env: check and apply changes on delete/destroy

Gerlando Falauto gerlando.falauto at keymile.com
Mon Dec 12 10:32:58 CET 2011


On 12/07/2011 11:02 PM, Simon Glass wrote:
>> 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.

Absolutely. I introduced the typedef at a later stage and forgot to 
update it there too. Good catch, thanks!

Best,
Gerlando


More information about the U-Boot mailing list