From edfa2154816932ce184f9db65093711bc9957cb3 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sat, 26 Jun 2010 00:44:37 +0200 Subject: [PATCH] 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 6994c8be..bfcb8d4b 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 f2ec823e..1cfa4666 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 )); -- 2.39.2