]> arthur.barton.de Git - ngircd-alex.git/commitdiff
const'ify Conn_WriteStr() function
authorAlexander Barton <alex@barton.de>
Fri, 25 Jun 2010 22:44:37 +0000 (00:44 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 25 Jun 2010 22:44:37 +0000 (00:44 +0200)
src/ngircd/conn.c
src/ngircd/conn.h

index 6994c8be8d7fb3876bc88961c95cac258a16f5d3..bfcb8d4bf3646d8e792272d89c3182f648dee184 100644 (file)
@@ -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
 {
index f2ec823ea6ee25bed5af38149263cbd228a6a2f7..1cfa466602379f7c8dc6f7b49e4a59d9ead2367e 100644 (file)
@@ -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 ));