[OpenWrt-Devel] [PATCH procd 2/4] ujail: remove useless arg in clone call
blogic at openwrt.org
Tue Nov 24 05:19:26 EST 2015
On 23/11/2015 13:12, Etienne Champetier wrote:
> 2015-11-23 12:52 GMT+01:00 Paul Fertser <fercerpav at gmail.com
> <mailto:fercerpav at gmail.com>>:
> Hey Etienne,
> Etienne Champetier <champetier.etienne at gmail.com
> <mailto:champetier.etienne at gmail.com>> writes:
> > i know that spawn_jail(void) is valid code, but then the clone call
> > refuses to compile
> That's type-safety for you. spawn_jail() is valid code too but it's not
> type-safe, so AFAICT you're avoiding the errors by letting the compiler
> ignore them, not by providing a proper solution. :)
> clone really want a function like "int fn(void * arg)"
> /static int spawn_jail(void * _notused)/
> ok for you both?
that would be valid code that does not ignore type safety checks.
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel