diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2016-10-15 18:03:18 +0200 |
---|---|---|
committer | Ulrich Sibiller <u.sibiller@science-computing.de> | 2016-10-20 10:16:35 +0200 |
commit | babaf67c92010d2f783d355a50ce11a2a12bb667 (patch) | |
tree | f8f0396a9d6d9e87810a7c87760dc381c7039453 | |
parent | ae8ec6b14e05909ede894a51c9faa035c2893e8c (diff) | |
download | nx-libs-babaf67c92010d2f783d355a50ce11a2a12bb667.tar.gz nx-libs-babaf67c92010d2f783d355a50ce11a2a12bb667.tar.bz2 nx-libs-babaf67c92010d2f783d355a50ce11a2a12bb667.zip |
Pending.c: Fix compilation warning
Pending.c: In function ‘XEventsQueued’:
Pending.c:44:5: warning: format ‘%p’ expects argument of type ‘void *’, but argument 3 has type ‘struct Display *’ [-Wformat=]
fprintf(stderr, "\nXEventsQueued: Called with a display at [%p].\n", dpy);
^
-rw-r--r-- | nx-X11/lib/X11/Pending.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/lib/X11/Pending.c b/nx-X11/lib/X11/Pending.c index dc52c81dc..d3804c629 100644 --- a/nx-X11/lib/X11/Pending.c +++ b/nx-X11/lib/X11/Pending.c @@ -41,7 +41,7 @@ int XEventsQueued ( { int ret_val; #if defined(NX_TRANS_SOCKET) && defined(NX_TRANS_TEST) - fprintf(stderr, "\nXEventsQueued: Called with a display at [%p].\n", dpy); + fprintf(stderr, "\nXEventsQueued: Called with a display at [%p].\n", (void *)dpy); #endif LockDisplay(dpy); @@ -50,7 +50,7 @@ int XEventsQueued ( else ret_val = _XEventsQueued (dpy, mode); #if defined(NX_TRANS_SOCKET) && defined(NX_TRANS_TEST) - fprintf(stderr, "\nXEventsQueued: Going to unlock the display at [%p].\n", dpy); + fprintf(stderr, "\nXEventsQueued: Going to unlock the display at [%p].\n", (void *)dpy); #endif UnlockDisplay(dpy); return ret_val; |