File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ int *tcp_listener(const char *s)
207207 if (listen (fd , 128 ) < 0 )
208208 err_sys ("listen" );
209209
210- if (allocated_fds < fd_num + 1 + 1 ) {
210+ if (allocated_fds < ( size_t ) fd_num + 1 + 1 ) {
211211 allocated_fds += 8 ;
212212 fd_list = realloc (fd_list , allocated_fds * sizeof (int ));
213213 }
@@ -218,7 +218,7 @@ int *tcp_listener(const char *s)
218218 }
219219
220220 /* and then add -1 as the list terminator */
221- if (allocated_fds < fd_num + 1 + 1 )
221+ if (allocated_fds < ( size_t ) fd_num + 1 + 1 )
222222 fd_list = realloc (fd_list , ++ allocated_fds * sizeof (int ));
223223 fd_list [fd_num ] = -1 ;
224224
Original file line number Diff line number Diff line change @@ -387,6 +387,7 @@ static void send_handshake(struct relay *relay)
387387
388388static void wait_for_child (int sig )
389389{
390+ (void )sig ;
390391 while (waitpid (-1 , NULL , WNOHANG ) > 0 );
391392}
392393
You can’t perform that action at this time.
0 commit comments