]> arthur.barton.de Git - ngircd.git/commitdiff
Connection password is not constant.
authorBrett Smith <brett@w3.org>
Thu, 23 Aug 2012 17:59:17 +0000 (13:59 -0400)
committerBrett Smith <brett@w3.org>
Thu, 23 Aug 2012 17:59:17 +0000 (13:59 -0400)
Saying otherwise makes a warning when we assign this to
conv.appdata_ptr in pam.c.

src/ngircd/conn.c
src/ngircd/conn.h

index 20d0cd4ffc6afd51ab5712c8c182e6363495b5b0..6ab3c2a9054c0524e88e57e68723eed9efe22004 100644 (file)
@@ -918,7 +918,7 @@ va_dcl
        return ok;
 } /* Conn_WriteStr */
 
-GLOBAL const char*
+GLOBAL char*
 Conn_Password( CONN_ID Idx )
 {
   assert( Idx > NONE );
index 341489aaffe7db4a6330754358f997c9b9bf2c72..7dcc8d9d590619c143276d93b003c0c565d3a4e4 100644 (file)
@@ -116,7 +116,7 @@ GLOBAL void Conn_Handler PARAMS(( void ));
 
 GLOBAL bool Conn_WriteStr PARAMS(( CONN_ID Idx, const char *Format, ... ));
 
-GLOBAL const char* Conn_Password PARAMS(( CONN_ID Idx ));
+GLOBAL char* Conn_Password PARAMS(( CONN_ID Idx ));
 GLOBAL void Conn_SetPassword PARAMS(( CONN_ID Idx, const char *Pwd ));
 
 GLOBAL void Conn_Close PARAMS(( CONN_ID Idx, const char *LogMsg, const char *FwdMsg, bool InformClient ));