aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-01-28 14:10:28 -0500
committerSteven Rostedt <rostedt@goodmis.org>2011-01-28 14:10:28 -0500
commit9f88745242c0cdd78af1226fb710e8031cb81a0a (patch)
tree8ac643d17ed9637162b31b69aa47bb6e6008c4f8
parentbcbd6328047704b2d7e1f5c0246f2dc47406d1cb (diff)
parse-events: Use strtoull() in filter conversion
The value converted by the filters in comparisons uses strtoll() which returns an invalid number when we are dealing with 64bit IP addresses. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--parse-filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-filter.c b/parse-filter.c
index d84a22b..0d448cb 100644
--- a/parse-filter.c
+++ b/parse-filter.c
@@ -350,7 +350,7 @@ create_arg_item(struct event_format *event,
350 if (isdigit(token[0])) { 350 if (isdigit(token[0])) {
351 arg->type = FILTER_ARG_VALUE; 351 arg->type = FILTER_ARG_VALUE;
352 arg->value.type = FILTER_NUMBER; 352 arg->value.type = FILTER_NUMBER;
353 arg->value.val = strtoll(token, NULL, 0); 353 arg->value.val = strtoull(token, NULL, 0);
354 break; 354 break;
355 } 355 }
356 /* Consider this a field */ 356 /* Consider this a field */