Skip to content

Commit fe14cf5

Browse files
committed
* server/listen.c: Remove the unused port parameter from open_listeners, and update the comment to reflect reality.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@168411 13f79535-47bb-0310-9956-ffa450edef68
1 parent b793d70 commit fe14cf5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

server/listen.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,11 @@ static const char *alloc_listener(process_rec *process, char *addr, apr_port_t p
315315
}
316316

317317
/**
318-
* Create and open a socket on the specified port. This includes listening
319-
* and binding the socket.
318+
* Create, open, listen, and bind all sockets.
320319
* @param process The process record for the currently running server
321-
* @param port The port to open a socket on.
322320
* @return The number of open sockets
323321
*/
324-
static int open_listeners(apr_pool_t *pool, apr_port_t port)
322+
static int open_listeners(apr_pool_t *pool)
325323
{
326324
ap_listen_rec *lr;
327325
ap_listen_rec *next;
@@ -456,7 +454,7 @@ AP_DECLARE(int) ap_setup_listeners(server_rec *s)
456454
ap_listen_rec *lr;
457455
int num_listeners = 0;
458456

459-
if (open_listeners(s->process->pool, s->port)) {
457+
if (open_listeners(s->process->pool)) {
460458
return 0;
461459
}
462460

0 commit comments

Comments
 (0)