aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2010-02-23 04:35:23 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2010-02-23 04:35:23 +0000
commit8a76942ba20ed01373035a20a7b4c27757fe4888 (patch)
tree3da9f7edf233ea0fd8da8fe6176170656152bb1a /epan/packet.c
parent40fae42f5a521e26a67031a8ac451c6354751913 (diff)
Squelch a bunch of compiler warnings.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31961 f5534014-38df-0310-8fa8-9805f1628bb7
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 551cf9bd88..7c43e70e96 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -1056,7 +1056,7 @@ dissector_delete_string(const char *name, const gchar *pattern,
/* Change the entry for a dissector in a string dissector table
with a particular pattern to use a new dissector handle. */
void
-dissector_change_string(const char *name, gchar *pattern,
+dissector_change_string(const char *name, const gchar *pattern,
dissector_handle_t handle)
{
dissector_table_t sub_dissectors = find_dissector_table( name);
@@ -1087,7 +1087,7 @@ dissector_change_string(const char *name, gchar *pattern,
dtbl_entry->current = handle;
/* do the table insertion */
- g_hash_table_insert( sub_dissectors->hash_table, pattern,
+ g_hash_table_insert( sub_dissectors->hash_table, (gpointer)pattern,
(gpointer)dtbl_entry);
}