Browse Source

- automatically unsigned conversions in comparison fixed

Andrei Pelinescu-Onciul 20 years ago
parent
commit
7f40fda9c5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tcp_main.c

+ 1 - 1
tcp_main.c

@@ -1260,7 +1260,7 @@ void tcp_main_loop()
 						if (tcpconn){
 						if (tcpconn){
 							bytes=receive_fd(pt[r].unix_sock, &tcpconn,
 							bytes=receive_fd(pt[r].unix_sock, &tcpconn,
 									sizeof(tcpconn), &tcpconn->s);
 									sizeof(tcpconn), &tcpconn->s);
-								if (bytes<sizeof(tcpconn)){
+								if (bytes<(int)sizeof(tcpconn)){
 									if (bytes<0){
 									if (bytes<0){
 										LOG(L_CRIT, "BUG: tcp_main_loop:"
 										LOG(L_CRIT, "BUG: tcp_main_loop:"
 												" CONN_NEW: receive_fd "
 												" CONN_NEW: receive_fd "