This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: invalid conversion from void* to void**
- From: Andrew Lunn <andrew at lunn dot ch>
- To: robert sebestyen <sebestyenrobert at hotmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 4 May 2006 14:40:25 +0200
- Subject: Re: [ECOS] invalid conversion from void* to void**
- References: <BAY19-F3B0318B86C9B622DD2607B7B40@phx.gbl>
On Thu, May 04, 2006 at 01:28:29PM +0200, robert sebestyen wrote:
> First, I would like to apologize myself for disturbing you with my problem.
>
> I implemented a lwIP into an existing project running on OS ecos, when i
> call the data i receive always invalid conversion from void* to void**! I
> call the lwIP with the following code:
You don't say which function call is actually giving you the warnings.
My guess is it is:
> netbuf_data(buf,(void*)&data,&len);
in aph.h we have:
err_t netbuf_data (struct netbuf *buf, void **dataptr, u16_t *len);
your second parameter is wrong. You pass a void *, not a void **.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss