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-double.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-double.c')
-rw-r--r-- | epan/ftypes/ftype-double.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/ftypes/ftype-double.c b/epan/ftypes/ftype-double.c index 0e6564e08c..1e517d27bd 100644 --- a/epan/ftypes/ftype-double.c +++ b/epan/ftypes/ftype-double.c @@ -115,37 +115,37 @@ double_val_to_repr(fvalue_t *fv, ftrepr_t rtype _U_, char *buf) } static gboolean -cmp_eq(fvalue_t *a, fvalue_t *b) +cmp_eq(const fvalue_t *a, const fvalue_t *b) { return a->value.floating == b->value.floating; } static gboolean -cmp_ne(fvalue_t *a, fvalue_t *b) +cmp_ne(const fvalue_t *a, const fvalue_t *b) { return a->value.floating != b->value.floating; } static gboolean -cmp_gt(fvalue_t *a, fvalue_t *b) +cmp_gt(const fvalue_t *a, const fvalue_t *b) { return a->value.floating > b->value.floating; } static gboolean -cmp_ge(fvalue_t *a, fvalue_t *b) +cmp_ge(const fvalue_t *a, const fvalue_t *b) { return a->value.floating >= b->value.floating; } static gboolean -cmp_lt(fvalue_t *a, fvalue_t *b) +cmp_lt(const fvalue_t *a, const fvalue_t *b) { return a->value.floating < b->value.floating; } static gboolean -cmp_le(fvalue_t *a, fvalue_t *b) +cmp_le(const fvalue_t *a, const fvalue_t *b) { return a->value.floating <= b->value.floating; } |