. Use goto instead of code duplication.

This commit is contained in:
Emil Mikulic 2003-11-24 11:11:20 +00:00
parent 5563889b66
commit db6517c62d

View File

@ -1818,6 +1818,7 @@ static void httpd_poll(void)
switch (conn->state)
{
case RECV_REQUEST:
recv_request:
MAX_FD_SET(conn->socket, &recv_set);
bother_with_timeout = 1;
break;
@ -1840,8 +1841,7 @@ static void httpd_poll(void)
{
recycle_connection(conn);
/* And enqueue as RECV_REQUEST. */
MAX_FD_SET(conn->socket, &recv_set);
bother_with_timeout = 1;
goto recv_request;
}
break;