[LTP] [PATCH] pounder21: Replace {r,}index() with str{r,}chr()

Petr Vorel pvorel@suse.cz
Mon Jul 23 14:06:37 CEST 2018


Hi Alistair,

> The index() and rindex() functions were removed in POSIX.2008. They are
> not implemented by Android's bionic C library for 64-bit platforms.

> Use the more portable strchr() and strrchr() functions from C89.

> Affects fancy_timed_loop, infinite_loop, run-helper, and timed_loop
> targets.

> Signed-off-by: Alistair Strachan <astrachan@google.com>

Patch merged, thanks!


Kind regards,
Petr


More information about the ltp mailing list