/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2008 by Alexander Barton (alex@barton.de)
+ * Copyright (c)2001-2009 Alexander Barton (alex@barton.de)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
static CL2CHAN *Get_First_Cl2Chan PARAMS(( CLIENT *Client, CHANNEL *Chan ));
static CL2CHAN *Get_Next_Cl2Chan PARAMS(( CL2CHAN *Start, CLIENT *Client, CHANNEL *Chan ));
static void Delete_Channel PARAMS(( CHANNEL *Chan ));
-static void Channel_Free PARAMS(( CHANNEL *Chan ));
+static void Free_Channel PARAMS(( CHANNEL *Chan ));
GLOBAL void
static void
-Channel_Free(CHANNEL *chan)
+Free_Channel(CHANNEL *chan)
{
array_free(&chan->topic);
Lists_Free(&chan->list_bans);
c = My_Channels;
while (c) {
c_next = c->next;
- Channel_Free(c);
+ Free_Channel(c);
c = c_next;
}
/* Free Channel allocation table */
cl2chan = My_Cl2Chan;
- while( c )
- {
+ while (cl2chan) {
cl2chan_next = cl2chan->next;
- free( cl2chan );
+ free(cl2chan);
cl2chan = cl2chan_next;
}
} /* Channel_Exit */
My_Channels = chan->next;
LogDebug("Freed channel structure for \"%s\".", Chan->name);
- Channel_Free(Chan);
+ Free_Channel(Chan);
} /* Delete_Channel */