[BusyBox] Optimizing ping size

Denis Vlasenko vda at ilport.com.ua
Wed Jun 15 08:41:55 UTC 2005


On Wednesday 15 June 2005 10:10, Marc Leeman wrote:
> > > 		*(unsigned char *) (&ans) = *(unsigned char *) w;
> 
> LHS casting, I thought that was no longer allowed with > gcc 4.0?

dereference (*) does not require lvalue:

legal: *(unsigned char *)(&ans) = ..
bad:   ((unsigned char *)(&ans))++ = ..
--
vda




More information about the busybox mailing list