mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
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:
parent
43b0d36ee1
commit
d6fe016c78
3 changed files with 17 additions and 10 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue