]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb158012bf17fdd28dbc1305a63725a9ea9621085
tree3c47e4a88c0bbdde57bf42b8a5f1b9b6f08eee51
parentb2c316fbbbabbcecbfd4fbac5d2302b8c9fd0430
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