From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerlando Falauto Date: Mon, 12 Dec 2011 10:32:58 +0100 Subject: [U-Boot] [PATCH v2 2/3] env: check and apply changes on delete/destroy In-Reply-To: References: <1321634955-5561-1-git-send-email-gerlando.falauto@keymile.com><1323264605-13541-3-git-send-email-gerlando.falauto@keymile.com> Message-ID: <4EE5CA4A.8050601@keymile.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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