aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
authorSven Moritz Hallberg <sm@khjk.org>2008-02-16 18:15:31 +0100
committerSven Moritz Hallberg <sm@khjk.org>2008-02-16 18:15:31 +0100
commit4eb4c0f4beeb87e07bd6b10daed8fe8e48fb4206 (patch)
treea54ec7b6b4622aa35ef7bd1efc58ab8ec45749ae /irc.c
parent896195002cc903ec4b1ef7e1468f73c1dc08df9e (diff)
parentca605509d0b49e6012d10ae5d1553ced007e6ce7 (diff)
merge in upstream changes
Diffstat (limited to 'irc.c')
-rw-r--r--irc.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/irc.c b/irc.c
index 3ea0d755..ae275216 100644
--- a/irc.c
+++ b/irc.c
@@ -76,7 +76,7 @@ irc_t *irc_new( int fd )
char buf[NI_MAXHOST+1];
if( getnameinfo( (struct sockaddr *) &sock, socklen, buf,
- NI_MAXHOST, NULL, -1, 0 ) == 0 )
+ NI_MAXHOST, NULL, 0, 0 ) == 0 )
{
irc->myhost = g_strdup( ipv6_unwrap( buf ) );
}
@@ -87,7 +87,7 @@ irc_t *irc_new( int fd )
char buf[NI_MAXHOST+1];
if( getnameinfo( (struct sockaddr *)&sock, socklen, buf,
- NI_MAXHOST, NULL, -1, 0 ) == 0 )
+ NI_MAXHOST, NULL, 0, 0 ) == 0 )
{
irc->host = g_strdup( ipv6_unwrap( buf ) );
}
@@ -198,7 +198,6 @@ void irc_free(irc_t * irc)
{
account_t *account;
user_t *user, *usertmp;
- help_t *helpnode, *helpnodetmp;
log_message( LOGLVL_INFO, "Destroying connection with fd %d", irc->fd );
@@ -275,17 +274,6 @@ void irc_free(irc_t * irc)
g_hash_table_foreach_remove(irc->watches, irc_free_hashkey, NULL);
g_hash_table_destroy(irc->watches);
- if (irc->help != NULL) {
- helpnode = irc->help;
- while (helpnode != NULL) {
- g_free(helpnode->string);
-
- helpnodetmp = helpnode;
- helpnode = helpnode->next;
- g_free(helpnodetmp);
- }
- }
-
otr_free(irc->otr);
g_free(irc);