perf quote: Disentangle headers
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 380a71a22b5a3270fbcc57ef45b6108941a6852c Gitweb: http://git.kernel.org/tip/380a71a22b5a3270fbcc57ef45b6108941a6852c Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Thu, 7 Jul 2016 11:17:38 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 12 Jul 2016 15:19:55 -0300
perf quote: Disentangle headers
No need to include stdio.h from quote.h, also forward declare strbuf.
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/quote.c | 4 +++- tools/perf/util/quote.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-)
tools/perf/util/quote.c +3 -1
@@ -1,5 +1,7 @@ -#include "cache.h" +#include <stdlib.h> +#include "strbuf.h" #include "quote.h" +#include "util.h" /* Help to copy the thing properly quoted for the shell safety. * any single quote is replaced with '\'', any exclamation point
tools/perf/util/quote.h +2 -1
@@ -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 */