about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2009-09-10 11:49:39 +0200
committerAlexander Barton <alex@barton.de>2009-09-10 11:49:39 +0200
commite1598e2670d599441f63c01f8df2ee5158ead2d4 (patch)
treef6a405c7ee7d2020c69f9908f85b1e4e186d5be2 /src
parent44acf41cc172e8131c3a987d430b9f948afd26ad (diff)
downloadngircd-e1598e2670d599441f63c01f8df2ee5158ead2d4.tar.gz
ngircd-e1598e2670d599441f63c01f8df2ee5158ead2d4.zip
Conn_Close(): remove unused variable "txt"
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index d62be359..06d655bf 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -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);