From 6500d443fc27300127e1c3b33e7c0bf1ad4407e4 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Sun, 23 Nov 2008 00:39:32 +0100 Subject: [PATCH] channel.c: constify a few function arguments. --- src/ngircd/channel.c | 6 +++--- src/ngircd/channel.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c index 609bbf5b..4f1aa760 100644 --- a/src/ngircd/channel.c +++ b/src/ngircd/channel.c @@ -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; diff --git a/src/ngircd/channel.h b/src/ngircd/channel.h index 91d1e21d..56b12404 100644 --- a/src/ngircd/channel.h +++ b/src/ngircd/channel.h @@ -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 ));