On Thu, May 16, 2002 at 03:15:11PM +0800, Fabrice MARIE wrote:
> I probably didn't understand.. but is there any reason to
> explicitely cast the pointer to become a 'void *'
> when the declaration specifically says it is returning an 'ipt_entry_target
> *' ?  Shouldn't it be casted to 'ipt_entry_target *' instead ?
> Sorry if didn't understand, but I'm just curious.

It isn't about the return value, it's about the calculation.  Casting it to
void * results in the addition of N bytes - otherwise we would add 
sizeof(struct ipt_entry_target)*N

> Have a nice day,
> Fabrice.

-- 
Live long and prosper
- Harald Welte / [EMAIL PROTECTED]               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ 
V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)

Reply via email to