summaryrefslogtreecommitdiff
path: root/lib/libXrender/src/Filter.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-10-31 18:41:20 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-10-31 18:41:20 +0000
commit6eab9fa3f48ef4e4b6af843e8002eb56b51e401d (patch)
tree0804f34e926b5906aab0ee97c78d018ab86f451c /lib/libXrender/src/Filter.c
parent4c00b91210f9e35ba50044ccbedf8f40816bc40d (diff)
update to libXrender 0.9.5
Diffstat (limited to 'lib/libXrender/src/Filter.c')
-rw-r--r--lib/libXrender/src/Filter.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libXrender/src/Filter.c b/lib/libXrender/src/Filter.c
index 0ccc811cc..76c8cfab8 100644
--- a/lib/libXrender/src/Filter.c
+++ b/lib/libXrender/src/Filter.c
@@ -40,14 +40,14 @@ XRenderQueryFilters (Display *dpy, Drawable drawable)
long nbytes, nbytesAlias, nbytesName;
if (!RenderHasExtension (info))
- return 0;
+ return NULL;
if (!XRenderQueryFormats (dpy))
- return 0;
+ return NULL;
xri = info->info;
if (xri->minor_version < 6)
- return 0;
+ return NULL;
LockDisplay (dpy);
GetReq (RenderQueryFilters, req);
@@ -58,7 +58,7 @@ XRenderQueryFilters (Display *dpy, Drawable drawable)
{
UnlockDisplay (dpy);
SyncHandle ();
- return 0;
+ return NULL;
}
/*
* Compute total number of bytes for filter names
@@ -82,7 +82,7 @@ XRenderQueryFilters (Display *dpy, Drawable drawable)
_XEatData (dpy, (unsigned long) rep.length << 2);
UnlockDisplay (dpy);
SyncHandle ();
- return 0;
+ return NULL;
}
/*
@@ -146,7 +146,7 @@ XRenderSetPictureFilter (Display *dpy,
req->nbytes = nbytes;
req->length += ((nbytes + 3) >> 2) + nparams;
Data (dpy, filter, nbytes);
- Data32 (dpy, params, nparams << 2);
+ Data (dpy, (_Xconst char *)params, nparams << 2);
UnlockDisplay(dpy);
SyncHandle();
}