This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: invalid conversion from void* to void**


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]