aboutsummaryrefslogtreecommitdiffstats
path: root/epan/range.c
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2022-08-06 08:26:40 -0400
committerJohn Thacker <johnthacker@gmail.com>2022-08-06 08:26:40 -0400
commit6fd212926a8df85bc1dbdbc43db12da8c34115eb (patch)
tree5eba99e40b803a14253a38ebb288b571e543e035 /epan/range.c
parent057436ff81dcf9ea92a04914f89cab5f61a5fe92 (diff)
epan: Constify a few range functions
Diffstat (limited to 'epan/range.c')
-rw-r--r--epan/range.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/range.c b/epan/range.c
index 7f4d5d7c36..a2ff590d83 100644
--- a/epan/range.c
+++ b/epan/range.c
@@ -257,7 +257,7 @@ range_convert_str_work(wmem_allocator_t *scope, range_t **rangep, const gchar *e
* stored in the ranges array.
*/
gboolean
-value_is_in_range(range_t *range, guint32 val)
+value_is_in_range(const range_t *range, guint32 val)
{
guint i;
@@ -366,7 +366,7 @@ range_remove_value(wmem_allocator_t *scope, range_t **range, guint32 val)
/* This function returns TRUE if the two given range_t's are equal.
*/
gboolean
-ranges_are_equal(range_t *a, range_t *b)
+ranges_are_equal(const range_t *a, const range_t *b)
{
guint i;
@@ -429,7 +429,7 @@ range_convert_range(wmem_allocator_t *scope, const range_t *range)
/* Create a copy of a range. */
range_t *
-range_copy(wmem_allocator_t *scope, range_t *src)
+range_copy(wmem_allocator_t *scope, const range_t *src)
{
range_t *dst;
size_t range_size;