summaryrefslogtreecommitdiff
path: root/tools/dbus-launch-x11.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2016-10-07 19:44:11 +0100
committerSimon McVittie <smcv@debian.org>2016-10-13 22:44:12 +0100
commitcd4e34408eb911b9fe001a1ac126bd2d74e3cb58 (patch)
tree521c63abce417f4fcbf147accf4a7bf0916dbde9 /tools/dbus-launch-x11.c
parent6c58015ebe682595e3f11d23329befb53c2ea6bc (diff)
downloaddbus-cd4e34408eb911b9fe001a1ac126bd2d74e3cb58.tar.gz
dbus-launch-x11: print a window ID portably
On LP64 platforms, a Window is unsigned long. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'tools/dbus-launch-x11.c')
-rw-r--r--tools/dbus-launch-x11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/dbus-launch-x11.c b/tools/dbus-launch-x11.c
index e8b29f88..c4b97904 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,