version 1.7 | | version 1.8 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_loop_c = | | * static char *rcsid_loop_c = |
* "$Id: loop.c,v 1.7 2000/12/18 07:38:26 cvs Exp $"; | | * "$Id: loop.c,v 1.8 2001/02/11 09:12:14 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/* If this is the case, all sockets currently in used */ | | /* If this is the case, all sockets currently in used */ |
if (socket_info.allocated_sockets <= socket_info.nconns) { | | if (socket_info.allocated_sockets <= socket_info.nconns) { |
init_sockets = realloc(init_sockets,sizeof(NewSocket)*(socket_info.nconns+1)); | | init_sockets = realloc(init_sockets,sizeof(NewSocket)*(socket_info.nconns+1)); |
| | if (!init_sockets) fatal(OUT_OF_MEMORY); |
newsocknum = socket_info.allocated_sockets; | | newsocknum = socket_info.allocated_sockets; |
socket_info.allocated_sockets++; | | socket_info.allocated_sockets++; |
init_sockets[newsocknum].status = Ns_Avail; | | init_sockets[newsocknum].status = Ns_Avail; |