diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-07 11:17:38 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-12 15:19:55 -0300 |
commit | 380a71a22b5a3270fbcc57ef45b6108941a6852c (patch) | |
tree | 740b1e01e8f93a3448b41669c581de3979fa9480 /tools/perf/util/quote.h | |
parent | 7ed0958ae877c0c470b5ff4c26e7ad9f676ef3ed (diff) | |
download | linux-380a71a22b5a3270fbcc57ef45b6108941a6852c.tar.bz2 |
perf quote: Disentangle headers
No need to include stdio.h from quote.h, also forward declare strbuf.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-k3kbcxhctpxvz6ckve3kv6c1@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/quote.h')
-rw-r--r-- | tools/perf/util/quote.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/quote.h b/tools/perf/util/quote.h index e1ec19146fb0..055ca45bed99 100644 --- a/tools/perf/util/quote.h +++ b/tools/perf/util/quote.h @@ -2,7 +2,6 @@ #define __PERF_QUOTE_H #include <stddef.h> -#include <stdio.h> /* Help to copy the thing properly quoted for the shell safety. * any single quote is replaced with '\'', any exclamation point @@ -24,6 +23,8 @@ * sq_quote() in a real application. */ +struct strbuf; + int sq_quote_argv(struct strbuf *, const char **argv, size_t maxlen); #endif /* __PERF_QUOTE_H */ |