repo: ngircd action: commit revision: path_from: revision_from: 98a8ea105cccd0607f7f2949602580104c098d84: path_to: revision_to:
commit 98a8ea105cccd0607f7f2949602580104c098d84 Author: Florian WestphalDate: Sat May 3 21:20:02 2008 +0200 constify Client_Search() argument. diff --git a/src/ngircd/client.c b/src/ngircd/client.c
--- a/src/ngircd/client.c
+++ b/src/ngircd/client.c
@@ -530,7 +530,7 @@ Client_ModeDel( CLIENT *Client, char Mode )
GLOBAL CLIENT *
-Client_Search( char *Nick )
+Client_Search( const char *Nick )
{
/* return Client-Structure that has the corresponding Nick.
* If none is found, return NULL.
diff --git a/src/ngircd/client.h b/src/ngircd/client.h
--- a/src/ngircd/client.h +++ b/src/ngircd/client.h @@ -85,7 +85,7 @@ GLOBAL CLIENT *Client_ThisServer PARAMS(( void )); GLOBAL CLIENT *Client_GetFromToken PARAMS(( CLIENT *Client, int Token )); -GLOBAL CLIENT *Client_Search PARAMS(( char *ID )); +GLOBAL CLIENT *Client_Search PARAMS(( const char *ID )); GLOBAL CLIENT *Client_First PARAMS(( void )); GLOBAL CLIENT *Client_Next PARAMS(( CLIENT *c ));
-----END OF PAGE-----