projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: properly compare type enumeration
[lttng-ust.git]
/
liblttng-ust
/
lttng-filter.c
diff --git
a/liblttng-ust/lttng-filter.c
b/liblttng-ust/lttng-filter.c
index 2db388dc5a3d9ddc3423ee34ab84ae5ab43d7bf9..947ed843917579fcee828f6e9aba95a88504e238 100644
(file)
--- a/
liblttng-ust/lttng-filter.c
+++ b/
liblttng-ust/lttng-filter.c
@@
-257,7
+257,7
@@
int apply_field_reloc(struct lttng_event *event,
{
const struct lttng_basic_type *elem_type = &field->type.u.array.elem_type;
{
const struct lttng_basic_type *elem_type = &field->type.u.array.elem_type;
- if (elem_type != atype_integer || elem_type->u.basic.integer.encoding == lttng_encode_none)
+ if (elem_type
->atype
!= atype_integer || elem_type->u.basic.integer.encoding == lttng_encode_none)
return -EINVAL;
op->op = FILTER_OP_LOAD_FIELD_REF_SEQUENCE;
break;
return -EINVAL;
op->op = FILTER_OP_LOAD_FIELD_REF_SEQUENCE;
break;
@@
-266,7
+266,7
@@
int apply_field_reloc(struct lttng_event *event,
{
const struct lttng_basic_type *elem_type = &field->type.u.sequence.elem_type;
{
const struct lttng_basic_type *elem_type = &field->type.u.sequence.elem_type;
- if (elem_type != atype_integer || elem_type->u.basic.integer.encoding == lttng_encode_none)
+ if (elem_type
->atype
!= atype_integer || elem_type->u.basic.integer.encoding == lttng_encode_none)
return -EINVAL;
op->op = FILTER_OP_LOAD_FIELD_REF_SEQUENCE;
break;
return -EINVAL;
op->op = FILTER_OP_LOAD_FIELD_REF_SEQUENCE;
break;
@@
-347,7
+347,7
@@
int apply_context_reloc(struct lttng_event *event,
{
const struct lttng_basic_type *elem_type = &ctx_field->event_field.type.u.array.elem_type;
{
const struct lttng_basic_type *elem_type = &ctx_field->event_field.type.u.array.elem_type;
- if (elem_type != atype_integer || elem_type->u.basic.integer.encoding == lttng_encode_none)
+ if (elem_type
->atype
!= atype_integer || elem_type->u.basic.integer.encoding == lttng_encode_none)
return -EINVAL;
op->op = FILTER_OP_GET_CONTEXT_REF_STRING;
break;
return -EINVAL;
op->op = FILTER_OP_GET_CONTEXT_REF_STRING;
break;
@@
-356,7
+356,7
@@
int apply_context_reloc(struct lttng_event *event,
{
const struct lttng_basic_type *elem_type = &ctx_field->event_field.type.u.sequence.elem_type;
{
const struct lttng_basic_type *elem_type = &ctx_field->event_field.type.u.sequence.elem_type;
- if (elem_type != atype_integer || elem_type->u.basic.integer.encoding == lttng_encode_none)
+ if (elem_type
->atype
!= atype_integer || elem_type->u.basic.integer.encoding == lttng_encode_none)
return -EINVAL;
op->op = FILTER_OP_GET_CONTEXT_REF_STRING;
break;
return -EINVAL;
op->op = FILTER_OP_GET_CONTEXT_REF_STRING;
break;
This page took
0.024039 seconds
and
4
git commands to generate.