From b462b0e6421846e12ceb50fd65df6982baa14619 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 7 Oct 2016 19:44:11 +0100 Subject: [PATCH 07/13] dbus-launch-x11: print a window ID portably On LP64 platforms, a Window is unsigned long. Signed-off-by: Simon McVittie --- tools/dbus-launch-x11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/dbus-launch-x11.c b/tools/dbus-launch-x11.c index d22ef5d..8b0732a 100644 --- a/tools/dbus-launch-x11.c +++ b/tools/dbus-launch-x11.c @@ -367,7 +367,8 @@ set_address_in_x11(char *address, pid_t pid) wid = XCreateWindow (xdisplay, RootWindow (xdisplay, 0), -20, -20, 10, 10, 0, CopyFromParent, InputOnly, CopyFromParent, 0, NULL); - verbose ("Created window %d\n", wid); + /* The type of a Window varies, so cast it to something reasonable */ + verbose ("Created window %lu\n", (unsigned long) wid); /* Save the property in the window */ XChangeProperty (xdisplay, wid, address_atom, XA_STRING, 8, PropModeReplace, -- 2.9.3