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 /conditions.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 'conditions.c')
-rw-r--r-- | conditions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/conditions.c b/conditions.c index 74f08b49a8..285dd697c8 100644 --- a/conditions.c +++ b/conditions.c @@ -1,7 +1,7 @@ /* conditions.c * Implementation for condition handler. * - * $Id: conditions.c,v 1.4 2002/12/02 23:43:25 guy Exp $ + * $Id: conditions.c,v 1.5 2002/12/03 02:07:07 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -168,7 +168,7 @@ void cnd_unregister_class(const char* class_id){ /* find the key for this class id and store it in 'pkey' */ g_hash_table_foreach(classes, _cnd_find_hash_key_for_class_id, - key); + (gpointer)key); /* find the class structure for this class id */ cls = (_cnd_class*)g_hash_table_lookup(classes, class_id); /* remove constructor from hash table */ |