aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2001-11-12 21:26:12 +0000
committertradke <tradke@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2001-11-12 21:26:12 +0000
commit4c0e121ba7ac5fc73a47fef5f493b4c58a765b0b (patch)
treef7dde130b79f69b8bee840573eb4209c4b7bfd06
parent94e4993218a3673057dcf91e4e5e66eeff771c01 (diff)
Bugfix.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@138 1faa4e14-9dd3-4be0-9f0e-ffe519881164
-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)