diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-07-29 03:27:59 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-07-29 03:27:59 +0000 |
commit | c8fc6a8e763b6a292ad808739cbb4c9055ab51f8 (patch) | |
tree | b4d0c3250f6d93c7760bcd07e41a21fde418cdf7 | |
parent | 74ae0a5f80b52e96b1d3ce0cda70d69260becd8a (diff) |
Cast away some (otherwise unremovable, and harmless, in this case)
warnings.
svn path=/trunk/; revision=15135
-rw-r--r-- | epan/dissectors/packet-ber.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ber.c b/epan/dissectors/packet-ber.c index 2523c3a8c9..f1177a4f2a 100644 --- a/epan/dissectors/packet-ber.c +++ b/epan/dissectors/packet-ber.c @@ -159,7 +159,7 @@ void register_ber_oid_dissector_handle(const char *oid, dissector_handle_t dissector, int proto _U_, const char *name) { dissector_add_string("ber.oid", oid, dissector); - g_hash_table_insert(oid_table, oid, name); + g_hash_table_insert(oid_table, (gpointer)oid, (gpointer)name); } void @@ -169,17 +169,17 @@ register_ber_oid_dissector(const char *oid, dissector_t dissector, int proto, co dissector_handle=create_dissector_handle(dissector, proto); dissector_add_string("ber.oid", oid, dissector_handle); - g_hash_table_insert(oid_table, oid, name); + g_hash_table_insert(oid_table, (gpointer)oid, (gpointer)name); } /* Register the oid name to get translation in proto dissection */ void register_ber_oid_name(const char *oid, const char *name) { - g_hash_table_insert(oid_table, oid, name); + g_hash_table_insert(oid_table, (gpointer)oid, (gpointer)name); } -/* Get oid name fom has table to get translation in proto dissection(packet-per.c) */ +/* Get oid name from hash table to get translation in proto dissection(packet-per.c) */ char * get_ber_oid_name(char *oid) { |