summaryrefslogtreecommitdiff
path: root/xts5/Xlib9
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-06-30 11:52:26 +1000
committerAaron Plattner <aplattner@nvidia.com>2011-04-12 15:37:56 -0700
commitdbcf105a03d29ad6541dd851a257393af54f5dd1 (patch)
treea37e75db6468fcef2c392a416db0b96c0a0b67b6 /xts5/Xlib9
parentd12f9c04388ce98953e8cfa75c40e7e3628ff573 (diff)
Remove superfluous (void) casts.
sed -e "s/\([ ]\)(void) \(.*\)/\1\2/" Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Diffstat (limited to 'xts5/Xlib9')
-rw-r--r--xts5/Xlib9/XGetImage.m24
-rw-r--r--xts5/Xlib9/XGetSubImage.m8
2 files changed, 16 insertions, 16 deletions
diff --git a/xts5/Xlib9/XGetImage.m b/xts5/Xlib9/XGetImage.m
index 5a382ca8..8185fb39 100644
--- a/xts5/Xlib9/XGetImage.m
+++ b/xts5/Xlib9/XGetImage.m
@@ -294,9 +294,9 @@ static struct area area2 =
/* Destroy images using XDestroyImage. */
if (im1 != (XImage *) 0)
- (void) XDestroyImage(im1);
+ XDestroyImage(im1);
if (im2 != (XImage *) 0)
- (void) XDestroyImage(im2);
+ XDestroyImage(im2);
/* Repeat for each visual. */
}
@@ -402,9 +402,9 @@ unsigned long pix;
CHECK;
/* Destroy images using XDestroyImage. */
if (im1 != (XImage *) 0)
- (void) XDestroyImage(im1);
+ XDestroyImage(im1);
if (im2 != (XImage *) 0)
- (void) XDestroyImage(im2);
+ XDestroyImage(im2);
/* Repeat for each planemask. */
}
@@ -533,9 +533,9 @@ unsigned long pix;
CHECK;
/* Destroy images using XDestroyImage. */
if (im1 != (XImage *) 0)
- (void) XDestroyImage(im1);
+ XDestroyImage(im1);
if (im2 != (XImage *) 0)
- (void) XDestroyImage(im2);
+ XDestroyImage(im2);
/* Repeat for each planemask. */
}
@@ -660,9 +660,9 @@ static struct area area1 =
/* Destroy images using XDestroyImage. */
if (im1 != (XImage *) 0)
- (void) XDestroyImage(im1);
+ XDestroyImage(im1);
if (im2 != (XImage *) 0)
- (void) XDestroyImage(im2);
+ XDestroyImage(im2);
/* Repeat for each type-window visual. */
}
@@ -740,10 +740,10 @@ static struct area area =
XGrabServer(display);
/* Enable synchronization. */
- (void) XSynchronize(display, True);
+ XSynchronize(display, True);
/* Save initial pointer location. */
- (void) XQueryPointer(display, w, &oldroot, &wtmp, &sroot_x, &sroot_y, &itmp, &itmp, &uitmp);
+ XQueryPointer(display, w, &oldroot, &wtmp, &sroot_x, &sroot_y, &itmp, &itmp, &uitmp);
/* Warp pointer to drawable. */
XWarpPointer(display, None, w, 0, 0, 0, 0, 0, 0);
@@ -791,7 +791,7 @@ static struct area area =
XWarpPointer(display, None, w, W_STDWIDTH*2, W_STDHEIGHT*2, 0, 0, 0, 0);
/* Get new pointer location. */
- (void) XQueryPointer(display, w, &wtmp, &wtmp, &oroot_x, &oroot_y, &itmp, &itmp, &uitmp);
+ XQueryPointer(display, w, &wtmp, &wtmp, &oroot_x, &oroot_y, &itmp, &itmp, &uitmp);
/* Call XGetImage with pointer outside drawable. */
pre_xcall(w, &area, AllPlanes, ZPixmap);
@@ -829,7 +829,7 @@ static struct area area =
XWarpPointer(display, None, oldroot, 0, 0, 0, 0, sroot_x, sroot_y);
/* Disable synchronization. */
- (void) XSynchronize(display, False);
+ XSynchronize(display, False);
/* Ungrab server. */
XUngrabServer(display);
diff --git a/xts5/Xlib9/XGetSubImage.m b/xts5/Xlib9/XGetSubImage.m
index d50c392e..64b6082e 100644
--- a/xts5/Xlib9/XGetSubImage.m
+++ b/xts5/Xlib9/XGetSubImage.m
@@ -932,10 +932,10 @@ static struct area area =
XGrabServer(display);
/* Enable synchronization. */
- (void) XSynchronize(display, True);
+ XSynchronize(display, True);
/* Save initial pointer location. */
- (void) XQueryPointer(display, w, &oldroot, &wtmp, &sroot_x, &sroot_y, &itmp, &itmp, &uitmp);
+ XQueryPointer(display, w, &oldroot, &wtmp, &sroot_x, &sroot_y, &itmp, &itmp, &uitmp);
/* Warp pointer to drawable. */
XWarpPointer(display, None, w, 0, 0, 0, 0, 0, 0);
@@ -979,7 +979,7 @@ static struct area area =
XWarpPointer(display, None, w, W_STDWIDTH*2, W_STDHEIGHT*2, 0, 0, 0, 0);
/* Get new pointer location. */
- (void) XQueryPointer(display, w, &wtmp, &wtmp, &oroot_x, &oroot_y, &itmp, &itmp, &uitmp);
+ XQueryPointer(display, w, &wtmp, &wtmp, &oroot_x, &oroot_y, &itmp, &itmp, &uitmp);
/* Call XGetSubImage with pointer outside drawable. */
pre_xcall(w, &area, AllPlanes, ZPixmap, &area);
@@ -1013,7 +1013,7 @@ static struct area area =
XWarpPointer(display, None, oldroot, 0, 0, 0, 0, sroot_x, sroot_y);
/* Disable synchronization. */
- (void) XSynchronize(display, False);
+ XSynchronize(display, False);
/* Ungrab server. */
XUngrabServer(display);