From: Arnaldo Carvalho de Melo Date: Wed, 26 Jun 2019 14:08:10 +0000 (-0300) Subject: perf strfilter: Use skip_spaces() X-Git-Tag: v5.3-rc1~162^2~4^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c1fc14cbdcc9455507e5f54109199bfea3af185f;p=thirdparty%2Fkernel%2Flinux.git perf strfilter: Use skip_spaces() No change in behaviour. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-p9rtamq7lvre9zhti70azfwe@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/strfilter.c b/tools/perf/util/strfilter.c index 2c3a2904ebcd9..90ea2b209cbb7 100644 --- a/tools/perf/util/strfilter.c +++ b/tools/perf/util/strfilter.c @@ -5,6 +5,7 @@ #include #include +#include /* Operators */ static const char *OP_and = "&"; /* Logical AND */ @@ -37,8 +38,7 @@ static const char *get_token(const char *s, const char **e) { const char *p; - while (isspace(*s)) /* Skip spaces */ - s++; + s = skip_spaces(s); if (*s == '\0') { p = s;