X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=x11fwd.c;h=6f7be40a5d2e69cf34a73bf7e8cc8dc1e441ab2b;hb=17af65c78c2e754647f37cf0599b6bced213d7c6;hp=6fde0d8f9296cb07f44abf5a8b5f54259d48d1c0;hpb=3270c74f9e72136e396775cf2d071c3a358e1489;p=PuTTY.git diff --git a/x11fwd.c b/x11fwd.c index 6fde0d8f..6f7be40a 100644 --- a/x11fwd.c +++ b/x11fwd.c @@ -5,13 +5,6 @@ #include "putty.h" #include "ssh.h" -#ifndef FALSE -#define FALSE 0 -#endif -#ifndef TRUE -#define TRUE 1 -#endif - #define GET_32BIT_LSB_FIRST(cp) \ (((unsigned long)(unsigned char)(cp)[0]) | \ ((unsigned long)(unsigned char)(cp)[1] << 8) | \ @@ -195,7 +188,7 @@ char *x11_init(Socket * s, char *display, void *c) pr->throttled = pr->throttle_override = 0; pr->c = c; - pr->s = *s = sk_new(addr, port, 0, 1, 0, (Plug) pr); + pr->s = *s = new_connection(addr, dummy_realhost, port, 0, 1, 0, (Plug) pr); if ((err = sk_socket_error(*s))) { sfree(pr); return err;