projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee44b5b
)
perf strfilter: Use skip_spaces()
author
Arnaldo Carvalho de Melo
<acme@redhat.com>
Wed, 26 Jun 2019 14:08:10 +0000
(11:08 -0300)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Wed, 26 Jun 2019 14:31:43 +0000
(11:31 -0300)
No change in behaviour.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link:
https://lkml.kernel.org/n/tip-p9rtamq7lvre9zhti70azfwe@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/strfilter.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/strfilter.c
b/tools/perf/util/strfilter.c
index 2c3a2904ebcd985a747ca1ff76bc0c4b02ec83d8..90ea2b209cbb79364558d1aaa6e13e2b62c2b990 100644
(file)
--- a/
tools/perf/util/strfilter.c
+++ b/
tools/perf/util/strfilter.c
@@
-5,6
+5,7
@@
#include <errno.h>
#include <linux/ctype.h>
+#include <linux/string.h>
/* 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;