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

John Crispin blogic at openwrt.org
Tue Nov 24 05:19:26 EST 2015



On 23/11/2015 13:12, Etienne Champetier wrote:
> Hey,
> 
> 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)"
> 
> Is
> 
>     /static int spawn_jail(void * _notused)/
> 
> ok for you both?
> 
> Etienne


that would be valid code that does not ignore type safety checks.
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list