This commit is contained in:
ubuntu201711081 2020-12-08 10:16:37 +00:00
parent bf3cc14c4d
commit a5e9d821b0

View File

@ -299,7 +299,9 @@ int main(int argc, const char *argv[]){
char ip_buf[INET_ADDRSTRLEN]; char ip_buf[INET_ADDRSTRLEN];
const char * msg; const char * msg;
int retval = 0; int retval = 0;
#ifdef USE_TRACE
struct timespec ts_top_begin,ts_top_end, ts_bottom_begin, ts_bottom_end; struct timespec ts_top_begin,ts_top_end, ts_bottom_begin, ts_bottom_end;
#endif
if((csock = accept(sock, (struct sockaddr *)&client_addr,&client_addr_len)) < 0){ if((csock = accept(sock, (struct sockaddr *)&client_addr,&client_addr_len)) < 0){
free(buf); free(buf);
perror("accept error"); perror("accept error");