aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@imgtec.com>2016-04-25 14:54:42 +0100
committerSteven Rostedt <rostedt@goodmis.org>2016-04-26 09:43:03 -0400
commitb193778aa7ee91e7677e2544353d3ce1844c4e63 (patch)
treeee62b6c126e771a9935bba18bdd8623a7ce1d370
parent2ef76d203d291efbf5004484bbd5c27f697801ac (diff)
downloadtrace-cmd-b193778aa7ee91e7677e2544353d3ce1844c4e63.tar.gz
trace-cmd record: Fix `const` placement
In `const char const * files[]`, both `const` refer to `char`. Moving the second one after the `*` makes the pointer const as well, which is probably what was intended. Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--trace-record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trace-record.c b/trace-record.c
index e4839943..9f220c9c 100644
--- a/trace-record.c
+++ b/trace-record.c
@@ -3606,7 +3606,7 @@ static void clear_func_filters(void)
struct buffer_instance *instance;
char *path;
int i;
- const char const *files[] = { "set_ftrace_filter",
+ const char * const files[] = { "set_ftrace_filter",
"set_ftrace_notrace",
"set_graph_function",
"set_graph_notrace",