diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-12-03 02:07:07 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-12-03 02:07:07 +0000 |
commit | ca90d7c68856e146483d3c1e471202744d5c1660 (patch) | |
tree | ac9170e7240cd848ee64ad3b0359f15dcb5114db /packet-nlm.c | |
parent | acbf9274febe118e2ac7964741576009025a1f72 (diff) | |
download | wireshark-ca90d7c68856e146483d3c1e471202744d5c1660.tar.gz wireshark-ca90d7c68856e146483d3c1e471202744d5c1660.tar.bz2 wireshark-ca90d7c68856e146483d3c1e471202744d5c1660.zip |
Cast const pointer arguments to "g_free()" and "g_hash_table_foreach()"
to "gpointer", so that we only get warnings when we turn on the extra
GCC warning checks.
svn path=/trunk/; revision=6734
Diffstat (limited to 'packet-nlm.c')
-rw-r--r-- | packet-nlm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-nlm.c b/packet-nlm.c index 7f52dce1b7..7a28cd1482 100644 --- a/packet-nlm.c +++ b/packet-nlm.c @@ -1,7 +1,7 @@ /* packet-nlm.c * Routines for nlm dissection * - * $Id: packet-nlm.c,v 1.32 2002/12/02 23:43:28 guy Exp $ + * $Id: packet-nlm.c,v 1.33 2002/12/03 02:07:07 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -122,7 +122,7 @@ nlm_msg_res_unmatched_free_all(gpointer key_arg _U_, gpointer value, gpointer us { nlm_msg_res_unmatched_data *umd = (nlm_msg_res_unmatched_data *)value; - g_free(umd->cookie); + g_free((gpointer)umd->cookie); g_free(umd); return TRUE; @@ -286,7 +286,7 @@ nlm_register_unmatched_res(packet_info *pinfo, tvbuff_t *tvb, int offset) g_hash_table_insert(nlm_msg_res_matched, (gpointer)md->rep_frame, (gpointer)md); g_hash_table_remove(nlm_msg_res_unmatched, (gconstpointer)old_umd); - g_free(old_umd->cookie); + g_free((gpointer)old_umd->cookie); g_free(old_umd); } } @@ -312,7 +312,7 @@ nlm_register_unmatched_msg(packet_info *pinfo, tvbuff_t *tvb, int offset) old_umd=g_hash_table_lookup(nlm_msg_res_unmatched, (gconstpointer)umd); if(old_umd){ g_hash_table_remove(nlm_msg_res_unmatched, (gconstpointer)old_umd); - g_free(old_umd->cookie); + g_free((gpointer)old_umd->cookie); g_free(old_umd); } |