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

@ -133,7 +133,7 @@ void expando_add_signal(const char *key, const char *signal, ExpandoArg arg)
/* Destroy expando */
void expando_destroy(const char *key, EXPANDO_FUNC func)
{
gpointer origkey;
gpointer origkey, value;
EXPANDO_REC *rec;
g_return_if_fail(key != NULL || *key == '\0');
@ -146,8 +146,9 @@ void expando_destroy(const char *key, EXPANDO_FUNC func)
char_expandos[(int) (unsigned char) *key] = NULL;
g_free(rec);
}
} else if (g_hash_table_lookup_extended(expandos, key, &origkey,
(gpointer *) &rec)) {
} else if (g_hash_table_lookup_extended(expandos, key,
&origkey, &value)) {
rec = value;
if (rec->func == func) {
g_hash_table_remove(expandos, key);
g_free(origkey);