]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Conn_Close(): remove unused variable "txt"
authorAlexander Barton <alex@barton.de>
Thu, 10 Sep 2009 09:49:39 +0000 (11:49 +0200)
committerAlexander Barton <alex@barton.de>
Thu, 10 Sep 2009 09:49:39 +0000 (11:49 +0200)
src/ngircd/conn.c

index d62be359c5435000418d75956e9b5fa2b41e086e..06d655bf345bbc0f47de2546fd13ad458a02273a 100644 (file)
@@ -900,7 +900,6 @@ Conn_Close( CONN_ID Idx, const char *LogMsg, const char *FwdMsg, bool InformClie
         * sub-processes are closed down. */
 
        CLIENT *c;
-       const char *txt;
        double in_k, out_k;
        UINT16 port;
 #ifdef ZLIB
@@ -923,13 +922,6 @@ Conn_Close( CONN_ID Idx, const char *LogMsg, const char *FwdMsg, bool InformClie
        /* Mark link as "closing" */
        Conn_OPTION_ADD( &My_Connections[Idx], CONN_ISCLOSING );
 
-       if (LogMsg)
-               txt = LogMsg;
-       else
-               txt = FwdMsg;
-       if (! txt)
-               txt = "Reason unknown";
-
        port = ng_ipaddr_getport(&My_Connections[Idx].addr);
        Log(LOG_INFO, "Shutting down connection %d (%s) with %s:%d ...", Idx,
            LogMsg ? LogMsg : FwdMsg, My_Connections[Idx].host, port);