aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Sockets.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Sockets.c b/src/Sockets.c
index 000a363..be6ba6d 100644
--- a/src/Sockets.c
+++ b/src/Sockets.c
@@ -141,7 +141,7 @@ static unsigned long int httpport = 0;
@endhistory
@@*/
-int HTTP_SetupServer(int port, int queue_size, int hunt)
+int HTTP_SetupServer(int which_port, int queue_size, int which_hunt)
{
char hostname[1025];
int realport;
@@ -152,7 +152,7 @@ int HTTP_SetupServer(int port, int queue_size, int hunt)
InitialiseTCP();
/* Create the socket and set it up to accept connections. */
- sock = HTTP_MakeSocket (port, hunt ? &realport : NULL);
+ sock = HTTP_MakeSocket (which_port, which_hunt ? &realport : NULL);
if (ERROR_CHECK(listen (sock, queue_size)))
{
@@ -163,7 +163,7 @@ int HTTP_SetupServer(int port, int queue_size, int hunt)
Util_GetHostName(hostname, 1024);
- httpport = hunt ? realport : port;
+ httpport = which_hunt ? realport : which_port;
printf("Server started on http://%s:%lu/\n", hostname, httpport);
if (announce_server_url)