mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 16:12:30 +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
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue