[OpenWrt-Devel] [PATCH procd 2/4] ujail: remove useless arg in clone call

Etienne Champetier champetier.etienne at gmail.com
Mon Nov 23 07:12:24 EST 2015


2015-11-23 12:52 GMT+01:00 Paul Fertser <fercerpav at gmail.com>:

> Hey Etienne,
> Etienne Champetier <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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20151123/dc37fa71/attachment.htm>
-------------- next part --------------
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list