diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-06-11 14:01:54 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-06-11 14:01:54 -0400 |
commit | 70b2b8bca3912a33f0eb08f95219a344faaa959b (patch) | |
tree | 4b622ea65723bd6422d921172f56bf96eabe6ef3 | |
parent | f3fbc8c9ef0fb0ab9b017b6711f0ea803effe7eb (diff) |
parse-events: Make char parameters const in pevent_parse_event()
The pevent_parse_event() function does not modify the parameters
@buf or @sys. They should be made constant.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | parse-events.c | 3 | ||||
-rw-r--r-- | parse-events.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/parse-events.c b/parse-events.c index eca3b67..5503a18 100644 --- a/parse-events.c +++ b/parse-events.c | |||
@@ -4268,7 +4268,8 @@ static int find_event_handle(struct pevent *pevent, struct event_format *event) | |||
4268 | * /sys/kernel/debug/tracing/events/.../.../format | 4268 | * /sys/kernel/debug/tracing/events/.../.../format |
4269 | */ | 4269 | */ |
4270 | int pevent_parse_event(struct pevent *pevent, | 4270 | int pevent_parse_event(struct pevent *pevent, |
4271 | char *buf, unsigned long size, char *sys) | 4271 | const char *buf, unsigned long size, |
4272 | const char *sys) | ||
4272 | { | 4273 | { |
4273 | struct event_format *event; | 4274 | struct event_format *event; |
4274 | int ret; | 4275 | int ret; |
diff --git a/parse-events.h b/parse-events.h index 32a8ff0..49de6bb 100644 --- a/parse-events.h +++ b/parse-events.h | |||
@@ -444,7 +444,8 @@ void pevent_print_event(struct pevent *pevent, struct trace_seq *s, | |||
444 | int pevent_parse_header_page(struct pevent *pevent, char *buf, unsigned long size, | 444 | int pevent_parse_header_page(struct pevent *pevent, char *buf, unsigned long size, |
445 | int long_size); | 445 | int long_size); |
446 | 446 | ||
447 | int pevent_parse_event(struct pevent *pevent, char *buf, unsigned long size, char *sys); | 447 | int pevent_parse_event(struct pevent *pevent, const char *buf, |
448 | unsigned long size, const char *sys); | ||
448 | 449 | ||
449 | int pevent_register_event_handler(struct pevent *pevent, int id, char *sys_name, char *event_name, | 450 | int pevent_register_event_handler(struct pevent *pevent, int id, char *sys_name, char *event_name, |
450 | pevent_event_handler_func func, void *context); | 451 | pevent_event_handler_func func, void *context); |