Commit 28736a88 authored by Salvador Fandino's avatar Salvador Fandino Committed by Mike Gabriel

remove unused listenHost parameter

parent d6edd7c9
...@@ -954,7 +954,6 @@ static char unixSocketName[DEFAULT_STRING_LENGTH] = { 0 }; ...@@ -954,7 +954,6 @@ static char unixSocketName[DEFAULT_STRING_LENGTH] = { 0 };
static char connectHost[DEFAULT_STRING_LENGTH] = { 0 }; static char connectHost[DEFAULT_STRING_LENGTH] = { 0 };
static char acceptHost[DEFAULT_STRING_LENGTH] = { 0 }; static char acceptHost[DEFAULT_STRING_LENGTH] = { 0 };
static char listenHost[DEFAULT_STRING_LENGTH] = { 0 };
static char displayHost[DEFAULT_STRING_LENGTH] = { 0 }; static char displayHost[DEFAULT_STRING_LENGTH] = { 0 };
static char authCookie[DEFAULT_STRING_LENGTH] = { 0 }; static char authCookie[DEFAULT_STRING_LENGTH] = { 0 };
...@@ -5456,7 +5455,6 @@ void CleanupLocal() ...@@ -5456,7 +5455,6 @@ void CleanupLocal()
*connectHost = '\0'; *connectHost = '\0';
*acceptHost = '\0'; *acceptHost = '\0';
*listenHost = '\0';
*displayHost = '\0'; *displayHost = '\0';
*authCookie = '\0'; *authCookie = '\0';
...@@ -13539,14 +13537,6 @@ ParseFontPathError: ...@@ -13539,14 +13537,6 @@ ParseFontPathError:
int ParseListenOption(int &address) int ParseListenOption(int &address)
{ {
if (*listenHost == '\0')
{
//
// On the X client side listen on any address.
// On the X server side listen to the forwarder
// on localhost.
//
if (loopbackBind || (control->ProxyMode == proxy_server)) { if (loopbackBind || (control->ProxyMode == proxy_server)) {
address = htonl(INADDR_LOOPBACK); address = htonl(INADDR_LOOPBACK);
} }
...@@ -13554,12 +13544,6 @@ int ParseListenOption(int &address) ...@@ -13554,12 +13544,6 @@ int ParseListenOption(int &address)
{ {
address = htonl(INADDR_ANY); address = htonl(INADDR_ANY);
} }
}
else
{
address = GetHostAddress(listenHost);
}
return 1; return 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment