* src/xterm.c (x_trace_wire):
(x_term_init): Fix debugging code for modern C and Xlib.
#if false
static unsigned int x_wire_count;
-x_trace_wire (void)
+
+static int
+x_trace_wire (Display *dpy)
{
- fprintf (stderr, "Lib call: %d\n", ++x_wire_count);
+ fprintf (stderr, "Lib call: %u\n", ++x_wire_count);
+ return 0;
}
#endif
terminal->name = xlispstrdup (display_name);
#if false
- XSetAfterFunction (x_current_display, x_trace_wire);
+ XSetAfterFunction (dpyinfo->display, x_trace_wire);
#endif
Lisp_Object system_name = Fsystem_name ();