From 4c0e121ba7ac5fc73a47fef5f493b4c58a765b0b Mon Sep 17 00:00:00 2001 From: tradke Date: Mon, 12 Nov 2001 21:26:12 +0000 Subject: Bugfix. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@138 1faa4e14-9dd3-4be0-9f0e-ffe519881164 --- src/Sockets.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Sockets.c') 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) -- cgit v1.2.3