common: no logic change, fix alignment, whitespaces
This commit is contained in:
parent
1ed7dbec53
commit
d01854a341
@ -986,8 +986,8 @@ g_tcp_accept(int sck)
|
|||||||
ret = accept(sck, (struct sockaddr *)&s, &i);
|
ret = accept(sck, (struct sockaddr *)&s, &i);
|
||||||
if(ret>0)
|
if(ret>0)
|
||||||
{
|
{
|
||||||
snprintf(ipAddr,255,"A connection received from: %s port %d"
|
snprintf(ipAddr, 255, "A connection received from: %s port %d",
|
||||||
,inet_ntoa(s.sin_addr),ntohs(s.sin_port));
|
inet_ntoa(s.sin_addr), ntohs(s.sin_port));
|
||||||
log_message(LOG_LEVEL_INFO,ipAddr);
|
log_message(LOG_LEVEL_INFO,ipAddr);
|
||||||
}
|
}
|
||||||
return ret ;
|
return ret ;
|
||||||
|
Loading…
Reference in New Issue
Block a user