diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2016-10-12 21:33:00 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-11-02 19:46:36 +0100 |
commit | 0cbc89221f82fa99db511eeef580a1476dfd4087 (patch) | |
tree | d1ba20af3fe8595d1ded67f66b4857148f250712 /nx-X11/programs/Xserver/os/xdmcp.c | |
parent | b5bfd3a49503387f1477a58b7c3d76fcdf06fbe5 (diff) | |
download | nx-libs-0cbc89221f82fa99db511eeef580a1476dfd4087.tar.gz nx-libs-0cbc89221f82fa99db511eeef580a1476dfd4087.tar.bz2 nx-libs-0cbc89221f82fa99db511eeef580a1476dfd4087.zip |
Remove unused TLI ("STREAMSCONN") code
Diffstat (limited to 'nx-X11/programs/Xserver/os/xdmcp.c')
-rw-r--r-- | nx-X11/programs/Xserver/os/xdmcp.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/nx-X11/programs/Xserver/os/xdmcp.c b/nx-X11/programs/Xserver/os/xdmcp.c index f61321f23..5daf1cbbf 100644 --- a/nx-X11/programs/Xserver/os/xdmcp.c +++ b/nx-X11/programs/Xserver/os/xdmcp.c @@ -54,11 +54,6 @@ #include <sys/ioctl.h> #endif -#ifdef STREAMSCONN -#include <tiuser.h> -#include <netconfig.h> -#include <netdir.h> -#endif #ifndef NX_TRANS_SOCKET @@ -1029,43 +1024,6 @@ XdmcpAddAuthorization ( static void get_xdmcp_sock(void) { -#ifdef STREAMSCONN - struct netconfig *nconf; - - if ((xdmcpSocket = t_open("/dev/udp", O_RDWR, 0)) < 0) { - XdmcpWarning("t_open() of /dev/udp failed"); - return; - } - - if( t_bind(xdmcpSocket,NULL,NULL) < 0 ) { - XdmcpWarning("UDP socket creation failed"); - t_error("t_bind(xdmcpSocket) failed" ); - t_close(xdmcpSocket); - return; - } - - /* - * This part of the code looks contrived. It will actually fit in nicely - * when the CLTS part of Xtrans is implemented. - */ - - if( (nconf=getnetconfigent("udp")) == NULL ) { - XdmcpWarning("UDP socket creation failed: getnetconfigent()"); - t_unbind(xdmcpSocket); - t_close(xdmcpSocket); - return; - } - - if( netdir_options(nconf, ND_SET_BROADCAST, xdmcpSocket, NULL) ) { - XdmcpWarning("UDP set broadcast option failed: netdir_options()"); - freenetconfigent(nconf); - t_unbind(xdmcpSocket); - t_close(xdmcpSocket); - return; - } - - freenetconfigent(nconf); -#else int soopts = 1; #if defined(IPv6) && defined(AF_INET6) @@ -1085,7 +1043,6 @@ get_xdmcp_sock(void) FatalError("Xserver: failed to bind to -from address: %s\n", xdm_from); } } -#endif /* STREAMSCONN */ } static void |