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)
{
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
const char *peeraddr, int peerport, const Config *cfg)
{
static const struct plug_function_table fn_table = {
+ x11_log,
x11_closing,
x11_receive,
x11_sent,
/*
* Try to find host.
*/
- addr = name_lookup(host, port, &dummy_realhost, cfg);
+ addr = name_lookup(host, port, &dummy_realhost, cfg, ADDRTYPE_UNSPEC);
if ((err = sk_addr_error(addr)) != NULL) {
sk_addr_free(addr);
return err;