Module: ngircd.git Branch: master Commit: edfa2154816932ce184f9db65093711bc9957cb3 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=edfa2...
Author: Alexander Barton alex@barton.de Date: Sat Jun 26 00:44:37 2010 +0200
const'ify Conn_WriteStr() function
---
src/ngircd/conn.c | 6 +++--- src/ngircd/conn.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 6994c8b..bfcb8d4 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -809,12 +809,12 @@ Conn_Handler(void) */ #ifdef PROTOTYPES GLOBAL bool -Conn_WriteStr( CONN_ID Idx, char *Format, ... ) +Conn_WriteStr(CONN_ID Idx, const char *Format, ...) #else GLOBAL bool -Conn_WriteStr( Idx, Format, va_alist ) +Conn_WriteStr(Idx, Format, va_alist) CONN_ID Idx; -char *Format; +const char *Format; va_dcl #endif { diff --git a/src/ngircd/conn.h b/src/ngircd/conn.h index f2ec823..1cfa466 100644 --- a/src/ngircd/conn.h +++ b/src/ngircd/conn.h @@ -107,7 +107,7 @@ GLOBAL void Conn_ExitListeners PARAMS(( void ));
GLOBAL void Conn_Handler PARAMS(( void ));
-GLOBAL bool Conn_WriteStr PARAMS(( CONN_ID Idx, char *Format, ... )); +GLOBAL bool Conn_WriteStr PARAMS(( CONN_ID Idx, const char *Format, ... ));
GLOBAL void Conn_Close PARAMS(( CONN_ID Idx, const char *LogMsg, const char *FwdMsg, bool InformClient ));
ngircd-commits@lists.barton.de