Conn_Close(): remove unused variable "txt"
This commit is contained in:
parent
44acf41cc1
commit
e1598e2670
|
@ -900,7 +900,6 @@ Conn_Close( CONN_ID Idx, const char *LogMsg, const char *FwdMsg, bool InformClie
|
||||||
* sub-processes are closed down. */
|
* sub-processes are closed down. */
|
||||||
|
|
||||||
CLIENT *c;
|
CLIENT *c;
|
||||||
const char *txt;
|
|
||||||
double in_k, out_k;
|
double in_k, out_k;
|
||||||
UINT16 port;
|
UINT16 port;
|
||||||
#ifdef ZLIB
|
#ifdef ZLIB
|
||||||
|
@ -923,13 +922,6 @@ Conn_Close( CONN_ID Idx, const char *LogMsg, const char *FwdMsg, bool InformClie
|
||||||
/* Mark link as "closing" */
|
/* Mark link as "closing" */
|
||||||
Conn_OPTION_ADD( &My_Connections[Idx], CONN_ISCLOSING );
|
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);
|
port = ng_ipaddr_getport(&My_Connections[Idx].addr);
|
||||||
Log(LOG_INFO, "Shutting down connection %d (%s) with %s:%d ...", Idx,
|
Log(LOG_INFO, "Shutting down connection %d (%s) with %s:%d ...", Idx,
|
||||||
LogMsg ? LogMsg : FwdMsg, My_Connections[Idx].host, port);
|
LogMsg ? LogMsg : FwdMsg, My_Connections[Idx].host, port);
|
||||||
|
|
Loading…
Reference in New Issue