X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/2184a5d91ffbcf2de2f730c83dda2d9443035f50..70cd2027d47923b19665b4b1e31f462ec63f8c57:/x11fwd.c 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;