aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-03-07 17:49:42 -0800
committerGuy Harris <guy@alum.mit.edu>2018-03-08 02:55:10 +0000
commite5cc633ee49823ac56350fd57fea3e54717d85f7 (patch)
treeacea4116924da483fc4712833e20f43f9874c8aa /epan/packet.c
parent957845f5a4ed8919164dfd469890732b65b40831 (diff)
Constify an argument that doesn't need to be non-const.
Change-Id: I59317862f57a41d1770c1cf6f8ec23662ae1c355 Reviewed-on: https://code.wireshark.org/review/26350 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/packet.c')
-rw-r--r--epan/packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/packet.c b/epan/packet.c
index a21a2888a1..80d754c10f 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -2068,7 +2068,7 @@ dissector_table_get_dissector_handles(dissector_table_t dissector_table) {
* Data structure used as user data when iterating dissector handles
*/
typedef struct lookup_entry {
- gchar* dissector_short_name;
+ const gchar* dissector_short_name;
dissector_handle_t handle;
} lookup_entry_t;
@@ -2087,7 +2087,7 @@ find_dissector_in_table(gpointer item, gpointer user_data)
}
}
-dissector_handle_t dissector_table_get_dissector_handle(dissector_table_t dissector_table, gchar* short_name)
+dissector_handle_t dissector_table_get_dissector_handle(dissector_table_t dissector_table, const gchar* short_name)
{
lookup_entry_t lookup;