OSDN Git Service

tools lib: Adopt strreplace() from the kernel
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 26 Jun 2019 15:24:03 +0000 (12:24 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 2 Jul 2019 01:50:40 +0000 (22:50 -0300)
commit2a60689a33a61f000bd90596b1289babcb861cd9
tree3c47e4a88c0bbdde57bf42b8a5f1b9b6f08eee51
parent13c230ab6e56c6ae3a968f01f4c6505b794cecad
tools lib: Adopt strreplace() from the kernel

We'll use it to further reduce the size of tools/perf/util/string.c,
replacing the strxfrchar() equivalent function we have there.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-x3r61ikjrso1buygxwke8id3@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/include/linux/string.h
tools/lib/string.c