diff options
author | runge <runge> | 2006-06-24 01:00:43 +0000 |
---|---|---|
committer | runge <runge> | 2006-06-24 01:00:43 +0000 |
commit | 9992160105b0433484bca804d62eb672aff113de (patch) | |
tree | 76447789365f2cfc38e5650a3a34cd9ad132382f /x11vnc/scan.c | |
parent | 64e731a9da82e3cc614e274d6fca6f855d0359b7 (diff) | |
download | libtdevnc-9992160105b0433484bca804d62eb672aff113de.tar.gz libtdevnc-9992160105b0433484bca804d62eb672aff113de.zip |
x11vnc: misc cleanup.
Diffstat (limited to 'x11vnc/scan.c')
-rw-r--r-- | x11vnc/scan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/x11vnc/scan.c b/x11vnc/scan.c index 162c53f..4dbc47a 100644 --- a/x11vnc/scan.c +++ b/x11vnc/scan.c @@ -240,7 +240,7 @@ static int shm_create(XShmSegmentInfo *shm, XImage **ximg_ptr, int w, int h, } return 0; } - if (db) fprintf(stderr, "shm_create simple %d %d\t%p %s\n", w, h, xim, name); + if (db) fprintf(stderr, "shm_create simple %d %d\t%p %s\n", w, h, (void *)xim, name); xim->data = (char *) malloc(xim->bytes_per_line * xim->height); if (xim->data == NULL) { rfbErr("XCreateImage(%s) data malloc failed.\n", name); @@ -349,7 +349,7 @@ void shm_delete(XShmSegmentInfo *shm) { void shm_clean(XShmSegmentInfo *shm, XImage *xim) { int db = 0; - if (db) fprintf(stderr, "shm_clean: called: %p\n", xim); + if (db) fprintf(stderr, "shm_clean: called: %p\n", (void *)xim); X_LOCK; #if LIBVNCSERVER_HAVE_XSHM if (shm != NULL && shm->shmid != -1 && dpy) { @@ -360,11 +360,11 @@ void shm_clean(XShmSegmentInfo *shm, XImage *xim) { if (xim != NULL) { if (! raw_fb_back_to_X) { /* raw_fb hack */ if (xim->bitmap_unit != -1) { - if (db) fprintf(stderr, "shm_clean: XDestroyImage %p\n", xim); + if (db) fprintf(stderr, "shm_clean: XDestroyImage %p\n", (void *)xim); XDestroyImage(xim); } else { if (xim->data) { - if (db) fprintf(stderr, "shm_clean: free xim->data %p %p\n", xim, xim->data); + if (db) fprintf(stderr, "shm_clean: free xim->data %p %p\n", (void *)xim, (void *)(xim->data)); free(xim->data); xim->data = NULL; } |