diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-11-09 13:32:00 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-11-09 15:34:58 -0500 |
commit | 8a38cce4c900307e947eda774f844caf5b9a7083 (patch) | |
tree | 31c38914377da39c416c9c3c0ff8e343e6f08dfc /tools/lib/traceevent/event-parse.c | |
parent | ca383a4df77a07e607123d7763facdc00ce32796 (diff) |
tools lib traceevent: Avoid comparisions between signed/unsigned
Fixing this warning-as-error on f14 32-bit:
tools/lib/traceevent/event-parse.c:5564:17: error: comparison between signed and unsigned integer expressions
tools/lib/traceevent/event-parse.c:5586:17: error: comparison between signed and unsigned integer expressions
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/n/tip-stmix8hy4nu5ervpynn8yj2z@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/traceevent/event-parse.c')
-rw-r--r-- | tools/lib/traceevent/event-parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index 0dcc18ce5542..6b647c17fff4 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c | |||
@@ -5561,7 +5561,7 @@ void pevent_free(struct pevent *pevent) | |||
5561 | } | 5561 | } |
5562 | 5562 | ||
5563 | if (pevent->func_map) { | 5563 | if (pevent->func_map) { |
5564 | for (i = 0; i < pevent->func_count; i++) { | 5564 | for (i = 0; i < (int)pevent->func_count; i++) { |
5565 | free(pevent->func_map[i].func); | 5565 | free(pevent->func_map[i].func); |
5566 | free(pevent->func_map[i].mod); | 5566 | free(pevent->func_map[i].mod); |
5567 | } | 5567 | } |
@@ -5583,7 +5583,7 @@ void pevent_free(struct pevent *pevent) | |||
5583 | } | 5583 | } |
5584 | 5584 | ||
5585 | if (pevent->printk_map) { | 5585 | if (pevent->printk_map) { |
5586 | for (i = 0; i < pevent->printk_count; i++) | 5586 | for (i = 0; i < (int)pevent->printk_count; i++) |
5587 | free(pevent->printk_map[i].printk); | 5587 | free(pevent->printk_map[i].printk); |
5588 | free(pevent->printk_map); | 5588 | free(pevent->printk_map); |
5589 | } | 5589 | } |