aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/subcmd/help.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2017-04-26 18:49:21 +0000
committerArnaldo Carvalho de Melo <[email protected]>2017-04-26 18:49:21 +0000
commit96395cbbc7e94cbbe4f76cf64cf122fabc19123d (patch)
treec0cf51cd06c2b98bf45ef786f88c9b662c6645e8 /tools/lib/subcmd/help.c
parentperf units: Move parse_tag_value() to units.[ch] (diff)
downloadkernel-96395cbbc7e94cbbe4f76cf64cf122fabc19123d.tar.gz
kernel-96395cbbc7e94cbbe4f76cf64cf122fabc19123d.zip
tools lib string: Adopt prefixcmp() from perf and subcmd
Both had copies originating from git.git, move those to tools/lib/string.c, getting both tools/lib/subcmd/ and tools/perf/ to use it. Cc: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/subcmd/help.c')
-rw-r--r--tools/lib/subcmd/help.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/subcmd/help.c b/tools/lib/subcmd/help.c
index e228c3cb3716..ba970a73d053 100644
--- a/tools/lib/subcmd/help.c
+++ b/tools/lib/subcmd/help.c
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <linux/string.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <sys/types.h>