aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Gondois <pierre.gondois@arm.com>2024-02-22 17:54:17 +0100
committerSteven Rostedt (Google) <rostedt@goodmis.org>2024-02-22 20:41:40 -0500
commit08c32816684461f464f738cd8f5773bc14af66db (patch)
treed2881f9746b7eb60d6c65eb0ea87790f7d824668
parent29f29261bf99c71fc429de2803df44908c3dce3e (diff)
downloadtrace-cmd-08c32816684461f464f738cd8f5773bc14af66db.tar.gz
trace-cmd split: Remove const to (struct handle_list).name
(struct handle_list).name was unnecessarily made const in: commit caa9eda091d6 ("trace-cmd split: Store instances in local list") Remove it. Also fix bad indentation. Link: https://lore.kernel.org/linux-trace-devel/20240222165418.2153026-1-pierre.gondois@arm.com Signed-off-by: Pierre Gondois <pierre.gondois@arm.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-rw-r--r--tracecmd/trace-split.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tracecmd/trace-split.c b/tracecmd/trace-split.c
index 2c311b3d..cb6242d8 100644
--- a/tracecmd/trace-split.c
+++ b/tracecmd/trace-split.c
@@ -53,9 +53,9 @@ struct cpu_data {
struct handle_list {
struct list_head list;
- const char *name;
+ char *name;
int index;
- struct tracecmd_input *handle;
+ struct tracecmd_input *handle;
/* Identify the top instance in the input trace. */
bool was_top_instance;
@@ -114,7 +114,7 @@ static void free_handles(struct list_head *list)
while (!list_empty(list)) {
item = container_of(list->next, struct handle_list, list);
list_del(&item->list);
- free((char *)item->name);
+ free(item->name);
tracecmd_close(item->handle);
free(item);
}