]> arthur.barton.de Git - ngircd.git/blobdiff - src/ngircd/channel.c
Rename Channel_Free() to Free_Channel(), it is a local function
[ngircd.git] / src / ngircd / channel.c
index ba5e72516fb0f4e41cc46837e2a54a87d61836d9..8caa81a02971baaa4add589857e3b69b0a0d3eb3 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * 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
@@ -58,7 +58,7 @@ static bool Remove_Client PARAMS(( int Type, CHANNEL *Chan, CLIENT *Client, CLIE
 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
@@ -148,7 +148,7 @@ Channel_InitPredefined( void )
 
 
 static void
-Channel_Free(CHANNEL *chan)
+Free_Channel(CHANNEL *chan)
 {
        array_free(&chan->topic);
        Lists_Free(&chan->list_bans);
@@ -168,16 +168,15 @@ Channel_Exit( void )
        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 */
@@ -1105,7 +1104,7 @@ Delete_Channel(CHANNEL *Chan)
                My_Channels = chan->next;
 
        LogDebug("Freed channel structure for \"%s\".", Chan->name);
-       Channel_Free(Chan);
+       Free_Channel(Chan);
 } /* Delete_Channel */