From: teodor Date: Sun, 26 Sep 2004 17:44:55 +0000 (+0000) Subject: fix tlog call X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=eda0ea75dfe76b100df67a0f77e575e3a867281c;p=tedtools.git fix tlog call --- 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);