From 7967a47be0a05db4a6c433b9b2eacc2fa3e83305 Mon Sep 17 00:00:00 2001 From: Arnaud Cornet Date: Sun, 9 Sep 2007 11:24:21 +0200 Subject: [PATCH] Add log_free prototype. --- src/irc.c | 2 -- src/log.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/irc.c b/src/irc.c index 1a01c9f..72bc4ea 100644 --- a/src/irc.c +++ b/src/irc.c @@ -2418,8 +2418,6 @@ struct link *irc_link_new() void link_kill(bip_t *bip, struct link *link) { - int i; - hash_remove(&link->user->connections, link->name); free(link->name); irc_close((struct link_any *)link->l_server); diff --git a/src/log.h b/src/log.h index ea7777e..dc4adaa 100644 --- a/src/log.h +++ b/src/log.h @@ -96,4 +96,5 @@ void log_client_none_connected(log_t *logdata); void log_reset(logfilegroup_t *); int check_dir(char *filename, int is_fatal); void log_reinit_all(log_t *logdata); +void log_free(log_t *log); #endif