diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2012-11-06 13:28:59 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2012-11-06 13:28:59 +0000 |
commit | 8909d388424bbb73fa0037a647261e1b940bce5d (patch) | |
tree | 88d2bc49ecbda0e4838ee4d82b9848d7620cc863 /epan/ftypes/ftype-bytes.c | |
parent | cdc278aefd2c928b4217ea2724bc08361f8cb389 (diff) |
When comparing fvalue_t we don't modify them, make arguments const.
svn path=/trunk/; revision=45948
Diffstat (limited to 'epan/ftypes/ftype-bytes.c')
-rw-r--r-- | epan/ftypes/ftype-bytes.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/ftypes/ftype-bytes.c b/epan/ftypes/ftype-bytes.c index 575f6b7038..e9ece85f02 100644 --- a/epan/ftypes/ftype-bytes.c +++ b/epan/ftypes/ftype-bytes.c @@ -338,7 +338,7 @@ slice(fvalue_t *fv, GByteArray *bytes, guint offset, guint length) static gboolean -cmp_eq(fvalue_t *fv_a, fvalue_t *fv_b) +cmp_eq(const fvalue_t *fv_a, const fvalue_t *fv_b) { GByteArray *a = fv_a->value.bytes; GByteArray *b = fv_b->value.bytes; @@ -352,7 +352,7 @@ cmp_eq(fvalue_t *fv_a, fvalue_t *fv_b) static gboolean -cmp_ne(fvalue_t *fv_a, fvalue_t *fv_b) +cmp_ne(const fvalue_t *fv_a, const fvalue_t *fv_b) { GByteArray *a = fv_a->value.bytes; GByteArray *b = fv_b->value.bytes; @@ -366,7 +366,7 @@ cmp_ne(fvalue_t *fv_a, fvalue_t *fv_b) static gboolean -cmp_gt(fvalue_t *fv_a, fvalue_t *fv_b) +cmp_gt(const fvalue_t *fv_a, const fvalue_t *fv_b) { GByteArray *a = fv_a->value.bytes; GByteArray *b = fv_b->value.bytes; @@ -383,7 +383,7 @@ cmp_gt(fvalue_t *fv_a, fvalue_t *fv_b) } static gboolean -cmp_ge(fvalue_t *fv_a, fvalue_t *fv_b) +cmp_ge(const fvalue_t *fv_a, const fvalue_t *fv_b) { GByteArray *a = fv_a->value.bytes; GByteArray *b = fv_b->value.bytes; @@ -400,7 +400,7 @@ cmp_ge(fvalue_t *fv_a, fvalue_t *fv_b) } static gboolean -cmp_lt(fvalue_t *fv_a, fvalue_t *fv_b) +cmp_lt(const fvalue_t *fv_a, const fvalue_t *fv_b) { GByteArray *a = fv_a->value.bytes; GByteArray *b = fv_b->value.bytes; @@ -417,7 +417,7 @@ cmp_lt(fvalue_t *fv_a, fvalue_t *fv_b) } static gboolean -cmp_le(fvalue_t *fv_a, fvalue_t *fv_b) +cmp_le(const fvalue_t *fv_a, const fvalue_t *fv_b) { GByteArray *a = fv_a->value.bytes; GByteArray *b = fv_b->value.bytes; @@ -434,7 +434,7 @@ cmp_le(fvalue_t *fv_a, fvalue_t *fv_b) } static gboolean -cmp_bitwise_and(fvalue_t *fv_a, fvalue_t *fv_b) +cmp_bitwise_and(const fvalue_t *fv_a, const fvalue_t *fv_b) { GByteArray *a = fv_a->value.bytes; GByteArray *b = fv_b->value.bytes; @@ -456,7 +456,7 @@ cmp_bitwise_and(fvalue_t *fv_a, fvalue_t *fv_b) } static gboolean -cmp_contains(fvalue_t *fv_a, fvalue_t *fv_b) +cmp_contains(const fvalue_t *fv_a, const fvalue_t *fv_b) { GByteArray *a = fv_a->value.bytes; GByteArray *b = fv_b->value.bytes; @@ -470,7 +470,7 @@ cmp_contains(fvalue_t *fv_a, fvalue_t *fv_b) } static gboolean -cmp_matches(fvalue_t *fv_a, fvalue_t *fv_b) +cmp_matches(const fvalue_t *fv_a, const fvalue_t *fv_b) { GByteArray *a = fv_a->value.bytes; GRegex *regex = fv_b->value.re; |