Fixed some gcc aliasing warnings

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3147 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2003-11-16 17:57:44 +00:00 committed by cras
commit d6fe016c78
3 changed files with 17 additions and 10 deletions

View file

@ -177,10 +177,11 @@ static void uniq_destroy_str(gpointer key, gpointer value)
void module_uniq_destroy(const char *module)
{
GHashTable *idlist;
gpointer key;
gpointer key, value;
if (g_hash_table_lookup_extended(idlookup, module, &key, &value)) {
idlist = value;
if (g_hash_table_lookup_extended(idlookup, module, &key,
(gpointer *) &idlist)) {
g_hash_table_remove(idlookup, key);
g_free(key);
@ -188,8 +189,9 @@ void module_uniq_destroy(const char *module)
g_hash_table_destroy(idlist);
}
if (g_hash_table_lookup_extended(stridlookup, module, &key,
(gpointer *) &idlist)) {
if (g_hash_table_lookup_extended(stridlookup, module, &key, &value)) {
idlist = value;
g_hash_table_remove(stridlookup, key);
g_free(key);