From 515a4902b5e4b605677b68df5f91b9397b02d981 Mon Sep 17 00:00:00 2001 From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org> Date: Sat, 24 Apr 1999 02:17:20 +0200 Subject: [PATCH] s/localhost/127.0.0.1/ Rev: lib/modules/Protocols.pmod/X.pmod/Xlib.pmod:1.38 --- lib/modules/Protocols.pmod/X.pmod/Xlib.pmod | 28 ++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/modules/Protocols.pmod/X.pmod/Xlib.pmod b/lib/modules/Protocols.pmod/X.pmod/Xlib.pmod index 512669af8c..abe0156987 100644 --- a/lib/modules/Protocols.pmod/X.pmod/Xlib.pmod +++ b/lib/modules/Protocols.pmod/X.pmod/Xlib.pmod @@ -1,6 +1,6 @@ /* Xlib.pmod * - * $Id: Xlib.pmod,v 1.37 1999/04/24 00:15:39 mirar Exp $ + * $Id: Xlib.pmod,v 1.38 1999/04/24 00:17:20 mirar Exp $ */ /* @@ -769,22 +769,22 @@ class Display /* Asynchronous connection */ if (async) - { - if (!is_local) + { + if (!is_local) open_socket(); - set_nonblocking(0, 0, close_callback); - } + set_nonblocking(0, 0, close_callback); + } if(!is_local) - { - int port = XPORT + (int)fields[1]; - werror(sprintf("Xlib: Connecting to %s:%d\n", host, port)); - if (!connect(host, port)) - { - werror(sprintf("Xlib: Connecting to %s:%d failed\n", host, port)); + { + int port = XPORT + (int)fields[1]; +// werror(sprintf("Xlib: Connecting to %s:%d\n", host, port)); + if (!connect(host, port)) + { +// werror(sprintf("Xlib: Connecting to %s:%d failed\n", host, port)); return 0; - } - werror(sprintf("Xlib: Connected to %s:%d\n", host, port)); - } + } +// werror(sprintf("Xlib: Connected to %s:%d\n", host, port)); + } set_buffer( 65536 ); -- GitLab