From eda0ea75dfe76b100df67a0f77e575e3a867281c Mon Sep 17 00:00:00 2001 From: teodor Date: Sun, 26 Sep 2004 17:44:55 +0000 Subject: [PATCH] fix tlog call --- tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcp.c b/tcp.c index 0273787..d4204a1 100644 --- a/tcp.c +++ b/tcp.c @@ -146,7 +146,7 @@ setlinger( TC_Connection *cs ) { ling.l_onoff = ling.l_linger = 0; if (setsockopt(cs->fd, SOL_SOCKET,SO_LINGER,(char *)&ling,sizeof(ling))==-1) { - tlog(TL_ALARM,"setsockopt: LINGER %s:%d - %s",inet_ntoa(cs->serv_addr.sin_addr), + tlog(TL_ALARM,"setsockopt: LINGER %s:%d - %s",inet_ntoa(cs->serv_addr.sin_addr), ntohs(cs->serv_addr.sin_port), strerror(errno)); shutdown(cs->fd,SHUT_RDWR); close(cs->fd); -- 2.46.1