summaryrefslogtreecommitdiffstats
path: root/contrib/x11vnc.c
diff options
context:
space:
mode:
authordscho <dscho>2003-08-06 15:12:49 +0000
committerdscho <dscho>2003-08-06 15:12:49 +0000
commit4fcb60871bb33d48e68bbd8f40a84aa4cfa2c805 (patch)
treece851972d9b71807b4e84e004d9d1356c3d002cb /contrib/x11vnc.c
parent79c414ab99d16b92e6436388cfb9f70f7c04ccde (diff)
downloadlibtdevnc-4fcb60871bb33d48e68bbd8f40a84aa4cfa2c805.tar.gz
libtdevnc-4fcb60871bb33d48e68bbd8f40a84aa4cfa2c805.zip
rfbErr introduced
Diffstat (limited to 'contrib/x11vnc.c')
-rw-r--r--contrib/x11vnc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/x11vnc.c b/contrib/x11vnc.c
index 0616ff1..d37d51a 100644
--- a/contrib/x11vnc.c
+++ b/contrib/x11vnc.c
@@ -1135,7 +1135,7 @@ void shm_create(XShmSegmentInfo *shm, XImage **ximg_ptr, int w, int h,
xim = XShmCreateImage(dpy, visual, bpp, ZPixmap, NULL, shm, w, h);
if (xim == NULL) {
- rfbLog( "XShmCreateImage(%s) failed.\n", name);
+ rfbErr( "XShmCreateImage(%s) failed.\n", name);
exit(1);
}
@@ -1145,7 +1145,7 @@ void shm_create(XShmSegmentInfo *shm, XImage **ximg_ptr, int w, int h,
xim->bytes_per_line * xim->height, IPC_CREAT | 0777);
if (shm->shmid == -1) {
- rfbLog("shmget(%s) failed.\n", name);
+ rfbErr("shmget(%s) failed.\n", name);
perror("shmget");
exit(1);
}
@@ -1153,7 +1153,7 @@ void shm_create(XShmSegmentInfo *shm, XImage **ximg_ptr, int w, int h,
shm->shmaddr = xim->data = (char *) shmat(shm->shmid, 0, 0);
if (shm->shmaddr == (char *)-1) {
- rfbLog("shmat(%s) failed.\n", name);
+ rfbErr("shmat(%s) failed.\n", name);
perror("shmat");
exit(1);
}
@@ -1161,7 +1161,7 @@ void shm_create(XShmSegmentInfo *shm, XImage **ximg_ptr, int w, int h,
shm->readOnly = False;
if (! XShmAttach(dpy, shm)) {
- rfbLog("XShmAttach(%s) failed.\n", name);
+ rfbErr("XShmAttach(%s) failed.\n", name);
exit(1);
}