channel.c: constify a few function arguments.

This commit is contained in:
Florian Westphal 2008-11-23 00:39:32 +01:00
parent d26a283ea9
commit 6500d443fc
2 changed files with 6 additions and 6 deletions

View File

@ -690,7 +690,7 @@ Channel_TopicWho(CHANNEL *Chan)
GLOBAL void
Channel_SetTopic(CHANNEL *Chan, CLIENT *Client, char *Topic)
Channel_SetTopic(CHANNEL *Chan, CLIENT *Client, const char *Topic)
{
size_t len;
assert( Chan != NULL );
@ -728,7 +728,7 @@ Channel_SetModes( CHANNEL *Chan, char *Modes )
GLOBAL void
Channel_SetKey( CHANNEL *Chan, char *Key )
Channel_SetKey( CHANNEL *Chan, const char *Key )
{
assert( Chan != NULL );
assert( Key != NULL );
@ -806,7 +806,7 @@ Channel_Write(CHANNEL *Chan, CLIENT *From, CLIENT *Client, const char *Command,
GLOBAL CHANNEL *
Channel_Create( char *Name )
Channel_Create( const char *Name )
{
/* Create new CHANNEL structure and add it to linked list */
CHANNEL *c;

View File

@ -79,9 +79,9 @@ GLOBAL char *Channel_Topic PARAMS(( CHANNEL *Chan ));
GLOBAL char *Channel_Key PARAMS(( CHANNEL *Chan ));
GLOBAL unsigned long Channel_MaxUsers PARAMS(( CHANNEL *Chan ));
GLOBAL void Channel_SetTopic PARAMS(( CHANNEL *Chan, CLIENT *Client, char *Topic ));
GLOBAL void Channel_SetTopic PARAMS(( CHANNEL *Chan, CLIENT *Client, const char *Topic ));
GLOBAL void Channel_SetModes PARAMS(( CHANNEL *Chan, char *Modes ));
GLOBAL void Channel_SetKey PARAMS(( CHANNEL *Chan, char *Key ));
GLOBAL void Channel_SetKey PARAMS(( CHANNEL *Chan, const char *Key ));
GLOBAL void Channel_SetMaxUsers PARAMS(( CHANNEL *Chan, unsigned long Count ));
GLOBAL CHANNEL *Channel_Search PARAMS(( const char *Name ));
@ -112,7 +112,7 @@ GLOBAL bool Channel_Write PARAMS((CHANNEL *Chan, CLIENT *From, CLIENT *Client,
const char *Command, bool SendErrors,
const char *Text));
GLOBAL CHANNEL *Channel_Create PARAMS(( char *Name ));
GLOBAL CHANNEL *Channel_Create PARAMS(( const char *Name ));
#ifndef STRICT_RFC
GLOBAL unsigned int Channel_TopicTime PARAMS(( CHANNEL *Chan ));