[Toybox] [PATCH] Stop lying to the compiler in modprobe's read_line.

enh enh at google.com
Wed Dec 28 18:31:21 PST 2016


(i strongly advise you don't look at this file until you're ready to
rewrite it from scratch. i'm only here because kernel modules might
make a comeback in Android, and i was asked "why doesn't bionic's
getline(3) work?"...)

On Wed, Dec 28, 2016 at 6:29 PM, enh <enh at google.com> wrote:
> sizeof(int) != sizeof(size_t) for LP64, leading to hilarity^Wcrashes.
> ---
>  toys/pending/modprobe.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)



-- 
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.


More information about the Toybox mailing list