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/ftypes.c | |
parent | cdc278aefd2c928b4217ea2724bc08361f8cb389 (diff) | |
download | wireshark-8909d388424bbb73fa0037a647261e1b940bce5d.tar.gz |
When comparing fvalue_t we don't modify them, make arguments const.
svn path=/trunk/; revision=45948
Diffstat (limited to 'epan/ftypes/ftypes.c')
-rw-r--r-- | epan/ftypes/ftypes.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/ftypes/ftypes.c b/epan/ftypes/ftypes.c index 7451d2af1c..7005e611ba 100644 --- a/epan/ftypes/ftypes.c +++ b/epan/ftypes/ftypes.c @@ -489,7 +489,7 @@ fvalue_get_floating(fvalue_t *fv) } gboolean -fvalue_eq(fvalue_t *a, fvalue_t *b) +fvalue_eq(const fvalue_t *a, const fvalue_t *b) { /* XXX - check compatibility of a and b */ g_assert(a->ftype->cmp_eq); @@ -497,7 +497,7 @@ fvalue_eq(fvalue_t *a, fvalue_t *b) } gboolean -fvalue_ne(fvalue_t *a, fvalue_t *b) +fvalue_ne(const fvalue_t *a, const fvalue_t *b) { /* XXX - check compatibility of a and b */ g_assert(a->ftype->cmp_ne); @@ -505,7 +505,7 @@ fvalue_ne(fvalue_t *a, fvalue_t *b) } gboolean -fvalue_gt(fvalue_t *a, fvalue_t *b) +fvalue_gt(const fvalue_t *a, const fvalue_t *b) { /* XXX - check compatibility of a and b */ g_assert(a->ftype->cmp_gt); @@ -513,7 +513,7 @@ fvalue_gt(fvalue_t *a, fvalue_t *b) } gboolean -fvalue_ge(fvalue_t *a, fvalue_t *b) +fvalue_ge(const fvalue_t *a, const fvalue_t *b) { /* XXX - check compatibility of a and b */ g_assert(a->ftype->cmp_ge); @@ -521,7 +521,7 @@ fvalue_ge(fvalue_t *a, fvalue_t *b) } gboolean -fvalue_lt(fvalue_t *a, fvalue_t *b) +fvalue_lt(const fvalue_t *a, const fvalue_t *b) { /* XXX - check compatibility of a and b */ g_assert(a->ftype->cmp_lt); @@ -529,7 +529,7 @@ fvalue_lt(fvalue_t *a, fvalue_t *b) } gboolean -fvalue_le(fvalue_t *a, fvalue_t *b) +fvalue_le(const fvalue_t *a, const fvalue_t *b) { /* XXX - check compatibility of a and b */ g_assert(a->ftype->cmp_le); @@ -537,7 +537,7 @@ fvalue_le(fvalue_t *a, fvalue_t *b) } gboolean -fvalue_bitwise_and(fvalue_t *a, fvalue_t *b) +fvalue_bitwise_and(const fvalue_t *a, const fvalue_t *b) { /* XXX - check compatibility of a and b */ g_assert(a->ftype->cmp_bitwise_and); @@ -545,7 +545,7 @@ fvalue_bitwise_and(fvalue_t *a, fvalue_t *b) } gboolean -fvalue_contains(fvalue_t *a, fvalue_t *b) +fvalue_contains(const fvalue_t *a, const fvalue_t *b) { /* XXX - check compatibility of a and b */ g_assert(a->ftype->cmp_contains); @@ -553,7 +553,7 @@ fvalue_contains(fvalue_t *a, fvalue_t *b) } gboolean -fvalue_matches(fvalue_t *a, fvalue_t *b) +fvalue_matches(const fvalue_t *a, const fvalue_t *b) { /* XXX - check compatibility of a and b */ g_assert(a->ftype->cmp_matches); |