From 28736a8886b8c611ccf6098766b47f49ef9757b9 Mon Sep 17 00:00:00 2001 From: Salvador Fandino Date: Tue, 2 Jun 2015 12:54:15 +0200 Subject: remove unused listenHost parameter --- nxcomp/Loop.cpp | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'nxcomp') diff --git a/nxcomp/Loop.cpp b/nxcomp/Loop.cpp index 059ac2d93..6dc544fe5 100644 --- a/nxcomp/Loop.cpp +++ b/nxcomp/Loop.cpp @@ -954,7 +954,6 @@ static char unixSocketName[DEFAULT_STRING_LENGTH] = { 0 }; static char connectHost[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 authCookie[DEFAULT_STRING_LENGTH] = { 0 }; @@ -5456,7 +5455,6 @@ void CleanupLocal() *connectHost = '\0'; *acceptHost = '\0'; - *listenHost = '\0'; *displayHost = '\0'; *authCookie = '\0'; @@ -13539,27 +13537,13 @@ ParseFontPathError: 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)) { - address = htonl(INADDR_LOOPBACK); - } - else - { - address = htonl(INADDR_ANY); - } + if (loopbackBind || (control->ProxyMode == proxy_server)) { + address = htonl(INADDR_LOOPBACK); } else { - address = GetHostAddress(listenHost); + address = htonl(INADDR_ANY); } - return 1; } -- cgit v1.2.3