X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/055817455466c8eb60392f30bb7c689763962e17..b59743d5e8caf832964543fab86839220e72cc90:/x11fwd.c diff --git a/x11fwd.c b/x11fwd.c index 52b320d1..17ab3a25 100644 --- a/x11fwd.c +++ b/x11fwd.c @@ -178,6 +178,12 @@ static char *x11_verify(unsigned long peer_ip, int peer_port, return NULL; } +static void x11_log(Plug p, int type, SockAddr addr, int port, + const char *error_msg, int error_code) +{ + /* We have no interface to the logging module here, so we drop these. */ +} + static int x11_closing(Plug plug, const char *error_msg, int error_code, int calling_back) { @@ -235,7 +241,7 @@ char *x11_display(const char *display) { char *ret; if(!display || !*display) { /* try to find platform-specific local display */ - if(!(ret = platform_get_x_display())) + if((ret = platform_get_x_display())==0) /* plausible default for all platforms */ ret = dupstr(":0"); } else @@ -259,6 +265,7 @@ const char *x11_init(Socket * s, char *display, void *c, void *auth, const char *peeraddr, int peerport, const Config *cfg) { static const struct plug_function_table fn_table = { + x11_log, x11_closing, x11_receive, x11_sent,