perf script: Fix compiler warning in builtin_script.c:is_top_script()
commit965bb6beaf70862d3846e330ea7a14996d82c499
authorStephane Eranian <eranian@google.com>
Fri, 3 Dec 2010 15:52:01 +0000 (3 17:52 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Dec 2010 14:44:27 +0000 (6 12:44 -0200)
treee4a24575429fd2432ef75fdb25d94f7e4d91b6cc
parentcbf41645f35224798cb61641766e6a16e141ffe4
perf script: Fix compiler warning in builtin_script.c:is_top_script()

Fix annoying compiler warning in the is_top_script() function.

The issue was that a const char * was cast into a char * to call
ends_with(). We fix the users of ends_with() instead. Some are passing a
char *, but it is okay to cast the return value of ends_with() to char *
(because we understand what ends_with() does).

Cc: David S. Miller <davem@davemloft.net>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Stephane Eranian <eranian@gmail.com>
LKML-Reference: <4cf92096.17edd80a.1540.5d60@mx.google.com>
Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-script.c